Unit 6: Random Variables
Model numerical outcomes of chance: discrete random variables, mean and standard deviation, combining random variables, and the binomial and geometric distributions.
单元 6:随机变量
为随机现象的数值结果建模:离散随机变量、均值与标准差、随机变量的组合,以及二项分布与几何分布。
Each topic gives objectives, an explanation, worked examples, an exam tip, common mistakes and check questions with answers. Use the contents list to jump to a topic, then finish with the unit quiz. All data are synthetic illustrations.
每个主题含学习目标、讲解、例题、考试提示、常见错误与带答案的自测题。可用目录跳转到任一主题,最后完成单元自测。所有数据均为合成示例。
Random variables and probability distributions随机变量与概率分布
- Define a random variable and classify it as discrete or continuous.
- Construct and check a discrete probability distribution (table and histogram).
- Find probabilities of events such as $P(X\ge 3)$ from a distribution.
- Compute and interpret an expected value, including the net gain of a game.
- 定义随机变量,并区分离散与连续型。
- 构造并检验离散概率分布(表格与直方图)。
- 由分布求 $P(X\ge 3)$ 之类事件的概率。
- 计算并解释期望值,包括游戏的净收益。
A random variable $X$ assigns a number to each outcome of a random process. It is discrete if its possible values can be listed (usually counts) and continuous if it can take any value in an interval (measurements). A probability distribution of a discrete variable lists every value with its probability.
随机变量 $X$ 给随机过程的每个结果赋一个数。若可能取值可以一一列出(通常是计数),则为离散型;若可取某区间内的任意值(测量值),则为连续型。离散变量的概率分布列出每个取值及其概率。
A valid discrete distribution has every $P(X=x)$ between $0$ and $1$, and $\sum P(X=x)=1$. For a continuous variable, probability is an area under a curve and $P(X=x)=0$ for any single value, so $P(X\le a)=P(X<a)$.
合法的离散分布满足每个 $P(X=x)$ 在 $0$ 到 $1$ 之间,且 $\sum P(X=x)=1$。对连续变量,概率是曲线下的面积,任一单点的概率 $P(X=x)=0$,因此 $P(X\le a)=P(X<a)$。
The expected value $E(X)$ is the mean of the distribution: the long-run average of $X$ over many repetitions. It need not be a possible value of $X$. Topic 6.2 adds the standard deviation.
期望值 $E(X)$ 是分布的均值:大量重复下 $X$ 的长期平均值。它不一定是 $X$ 的可能取值。主题 6.2 会补充标准差。
Building a distribution from a random process由随机过程构造概率分布
Often the table is not given and you must build it. The method is the same every time: list the outcomes of the process, define $X$ as a number attached to each outcome, count how many outcomes give each value of $X$, and divide by the total number of equally likely outcomes. Then check that the probabilities sum to $1$. For example, roll two fair four-sided dice and let $X$ be the larger of the two numbers. There are $16$ equally likely pairs. Only $(1,1)$ gives $X=1$; the pairs $(1,2),(2,1),(2,2)$ give $X=2$; five pairs give $X=3$ and seven pairs give $X=4$.
题目常常不给出表格,需要自己构造。方法每次都相同:列出随机过程的所有结果,把 $X$ 定义为附在每个结果上的数,数出每个 $X$ 取值对应多少个结果,再除以等可能结果的总数。最后检验概率之和为 $1$。例如,掷两枚均匀的四面骰子,令 $X$ 为两个数中较大的一个。共有 $16$ 个等可能的数对。只有 $(1,1)$ 使 $X=1$;数对 $(1,2),(2,1),(2,2)$ 使 $X=2$;五个数对使 $X=3$,七个数对使 $X=4$。
| Larger number, $x$ | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| $P(X=x)$ | $1/16$ | $3/16$ | $5/16$ | $7/16$ |
| 较大的数 $x$ | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| $P(X=x)$ | $1/16$ | $3/16$ | $5/16$ | $7/16$ |
The probabilities sum to $\dfrac{1+3+5+7}{16}=1$, and $E(X)=\dfrac{1(1)+2(3)+3(5)+4(7)}{16}=\dfrac{50}{16}=3.125$. The mean is above the middle of the values $1$ to $4$ because the large values carry the most probability: the histogram rises to the right, so its tail points left.
概率之和为 $\dfrac{1+3+5+7}{16}=1$,且 $E(X)=\dfrac{1(1)+2(3)+3(5)+4(7)}{16}=\dfrac{50}{16}=3.125$。均值高于取值 $1$ 到 $4$ 的中点,因为大的取值概率最大:直方图向右上升,尾部指向左侧。
Expected value as a decision tool: fair games and prices把期望值用于决策:公平游戏与定价
A game is fair when the expected net gain is $0$. To find a fair price, find the expected prize and set the price equal to it. Rolling one fair die and winning dollars equal to the number rolled has expected prize $\dfrac{1+2+3+4+5+6}{6}=3.5$ dollars, so an entry fee of 3.50 dollars makes the game fair and any higher fee makes the game unfavorable to the player. Net gain is prize minus cost, so the cost is a constant that shifts $E(X)$ down by that amount and leaves the spread unchanged.
当净收益的期望为 $0$ 时,游戏是公平的。要找公平价格,先求期望奖金,再令价格等于它。掷一枚均匀的骰子,赢得与点数相等的美元数,期望奖金为 $\dfrac{1+2+3+4+5+6}{6}=3.5$ 美元,因此 3.50 美元的参与费使游戏公平,任何更高的费用都对玩家不利。净收益等于奖金减成本,成本是常数,它把 $E(X)$ 整体下移该数额,而离散程度不变。
Expected value compares options only on average. Two options with the same $E(X)$ can carry very different risk, which is why Topic 6.2 adds the standard deviation. State a decision in context and say what the average leaves out.
期望值只在平均意义上比较各个选项。两个 $E(X)$ 相同的选项,风险可能相差很大,这正是主题 6.2 要补充标准差的原因。要结合情境陈述决策,并指出平均值没有反映的信息。
Finding event probabilities from a distribution由分布求事件的概率
Read the wording of the event, then add the probabilities of the values it contains. For the larger-of-two-dice distribution above: $P(X\ge3)=\dfrac{5+7}{16}=0.75$; $P(X\le2)=\dfrac{1+3}{16}=0.25$; $P(2\le X\le3)=\dfrac{3+5}{16}=0.50$; and $P(X\ne4)=1-\dfrac{7}{16}=0.5625$. When an event names many values, the complement is shorter: $P(X\ge3)=1-P(X\le2)=1-0.25$. For a discrete variable the endpoints matter, so $P(X<3)$ and $P(X\le3)$ differ by $P(X=3)$. For a continuous variable they do not, because a single value has probability $0$.
先读懂事件的措辞,再把它所含各取值的概率相加。对上面“两骰较大者”的分布:$P(X\ge3)=\dfrac{5+7}{16}=0.75$;$P(X\le2)=\dfrac{1+3}{16}=0.25$;$P(2\le X\le3)=\dfrac{3+5}{16}=0.50$;$P(X\ne4)=1-\dfrac{7}{16}=0.5625$。事件包含很多取值时,用补事件更短:$P(X\ge3)=1-P(X\le2)=1-0.25$。对离散变量,端点很重要,$P(X<3)$ 与 $P(X\le3)$ 相差 $P(X=3)$。对连续变量则没有区别,因为单个取值的概率为 $0$。
Writing an interpretation of an expected value怎样写期望值的解释
A complete interpretation names the long-run average, the variable in context, the units and the repeated process. A template: "Over many [repetitions of the process], the average [variable] is about $E(X)$ [units]." For the order model: "Over many online orders, the average number of items is about $2.2$ items per order." Avoid three weak phrasings: "the expected value will happen", "the most likely value is $E(X)$" and "each order has $2.2$ items".
完整的解释要说出长期平均、情境中的变量、单位以及被重复的过程。模板:“在大量[该过程的重复]中,[变量]的平均值约为 $E(X)$ [单位]。”对订单模型:“在大量网购订单中,平均每单约有 $2.2$ 件商品。”要避免三种薄弱的说法:“期望值一定会发生”“最可能的值是 $E(X)$”“每笔订单有 $2.2$ 件”。
Reading a probability histogram读懂概率直方图
A probability histogram puts the values of $X$ on the horizontal axis and $P(X=x)$ as the bar heights, so the heights sum to $1$ and each bar's area is its probability when the bars have width $1$. Read it in three parts, always in context. Center: the mean is the balance point, so it is pulled toward the long tail. Spread: bars far from the center, with real height, mean a larger $\sigma$. Shape: a tail pointing right is skewed right, a tail pointing left is skewed left, and mirror-image halves are symmetric. Describe the shape of the distribution, not of a single sample of data.
概率直方图把 $X$ 的取值放在横轴上,柱高是 $P(X=x)$,所以柱高之和为 $1$;当柱宽为 $1$ 时,每根柱子的面积就是它的概率。读图分三部分,并且始终结合情境。中心:均值是平衡点,所以会被拉向长尾一侧。离散程度:远离中心且有一定高度的柱子越多,$\sigma$ 越大。形状:尾巴指向右侧为右偏,指向左侧为左偏,左右两半互为镜像则对称。描述的是分布的形状,而不是某一份样本数据的形状。
Expected value and the long run期望值与长期行为
The expected value describes what happens over very many repetitions, not over a few. A player who buys $10$ raffle tickets from Example 6.1b may finish well ahead, because one prize changes the average a great deal. Over $100000$ tickets, however, the average net gain per ticket settles very close to $-1.00$ dollars. This stabilizing of an average as the number of repetitions grows is the law of large numbers. It does not say a win becomes due after losses: each ticket has the same chance, and the average steadies only because early results are diluted by later ones.
期望值描述的是大量重复后的结果,而不是少数几次。买了 $10$ 张例 6.1b 彩票的玩家,完全可能大幅盈利,因为一个奖项就会使平均值变化很大。但在 $100000$ 张彩票上,每张的平均净收益会稳定在非常接近 $-1.00$ 美元的位置。随着重复次数增加,平均值趋于稳定,这就是大数定律。它并不是说输了之后赢就“该来了”:每张彩票的机会相同,平均值之所以稳定,只是因为早期的结果被后来的结果稀释了。
Worked examples例题
| Items in an order, $x$ | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| $P(X=x)$ | 0.35 | 0.30 | 0.20 | $k$ | 0.05 |
| 订单中的商品数 $x$ | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| $P(X=x)$ | 0.35 | 0.30 | 0.20 | $k$ | 0.05 |
Synthetic teaching data for Example 6.1a.
例 6.1a 的合成教学数据。
Worked Example 6.1a: A distribution with a missing probability
$X$ is the number of items in a random online order, with the distribution above. Find $k$, then $P(X\ge3)$, $P(X<3)$ and $P(2\le X\le4)$, and compute $E(X)$.
- The probabilities sum to $1$: $0.35+0.30+0.20+k+0.05=1$, so $k=0.10$.
- $P(X\ge3)=0.20+0.10+0.05=0.35$.
- $P(X<3)=0.35+0.30=0.65$, which is $1-P(X\ge3)$.
- $P(2\le X\le4)=0.30+0.20+0.10=0.60$.
- $E(X)=1(0.35)+2(0.30)+3(0.20)+4(0.10)+5(0.05)=0.35+0.60+0.60+0.40+0.25=2.20$ items. Over many orders the average is $2.2$ items, a value no single order can have.
例题 6.1a:含一个未知概率的分布
$X$ 为随机一单网购订单中的商品数,分布如上表。求 $k$,再求 $P(X\ge3)$、$P(X<3)$ 与 $P(2\le X\le4)$,并计算 $E(X)$。
- 概率之和为 $1$:$0.35+0.30+0.20+k+0.05=1$,所以 $k=0.10$。
- $P(X\ge3)=0.20+0.10+0.05=0.35$。
- $P(X<3)=0.35+0.30=0.65$,也就是 $1-P(X\ge3)$。
- $P(2\le X\le4)=0.30+0.20+0.10=0.60$。
- $E(X)=1(0.35)+2(0.30)+3(0.20)+4(0.10)+5(0.05)=0.35+0.60+0.60+0.40+0.25=2.20$ 件。大量订单的平均为 $2.2$ 件,而单个订单不可能恰为该值。
Worked Example 6.1b: Expected net gain in a raffle
A raffle sells $1000$ tickets at 2 dollars each. Prizes: one of 500 dollars, three of 100 dollars and ten of 20 dollars. Let $X$ be the net gain of one ticket (prize minus the 2 dollar cost). Find the distribution and $E(X)$, and interpret.
- Net gains and probabilities: 498 dollars with $1/1000=0.001$; 98 dollars with $3/1000=0.003$; 18 dollars with $10/1000=0.010$; and $-2$ dollars for the remaining $986$ tickets, $0.986$. They sum to $1$.
- $E(X)=498(0.001)+98(0.003)+18(0.010)+(-2)(0.986)=0.498+0.294+0.180-1.972=-1.00$.
- Interpretation: on average, a ticket buyer loses 1.00 dollars per ticket in the long run. Check: the raffle takes in 2000 dollars and pays out $500+300+200=1000$ dollars, a profit of 1000 dollars over $1000$ tickets, which is 1 dollar per ticket.
例题 6.1b:抽奖的期望净收益
某抽奖售出 $1000$ 张彩票,每张 2 美元。奖品:一个 500 美元、三个 100 美元、十个 20 美元。设 $X$ 为一张彩票的净收益(奖金减去 2 美元成本)。求分布与 $E(X)$,并解释。
- 净收益与概率:498 美元,概率 $1/1000=0.001$;98 美元,概率 $3/1000=0.003$;18 美元,概率 $10/1000=0.010$;其余 $986$ 张彩票为 $-2$ 美元,概率 $0.986$。总和为 $1$。
- $E(X)=498(0.001)+98(0.003)+18(0.010)+(-2)(0.986)=0.498+0.294+0.180-1.972=-1.00$。
- 解释:长期来看,买彩票的人平均每张亏损 1.00 美元。验算:抽奖收入 2000 美元,支付奖金 $500+300+200=1000$ 美元,$1000$ 张彩票获利 1000 美元,即每张 1 美元。
Worked Example 6.1c: Choosing a repair plan
A synthetic phone retailer sells a repair plan for 25 dollars that covers every repair for one year. Without the plan, the yearly repair cost $X$ in dollars is $0$ with probability $0.85$, $120$ with probability $0.10$ and $300$ with probability $0.05$. (a) Find $E(X)$. (b) Should a customer who looks only at the long-run average buy the plan? (c) Give a reason a customer might buy it anyway.
- The probabilities sum to $0.85+0.10+0.05=1$, so the distribution is valid.
- $E(X)=0(0.85)+120(0.10)+300(0.05)=0+12+15=27$ dollars.
- Compare with the plan: $27-25=2$. A complete answer states it in context: over many customers, repairs without the plan average 27 dollars a year, which is 2 dollars more than the plan costs, so on average the plan saves 2 dollars per customer.
- The average ignores risk. Without the plan, $5\%$ of customers face a 300 dollar bill, while the plan turns every outcome into a certain 25 dollars. A customer who dislikes the chance of a large bill can rationally pay 2 dollars of expected cost for that certainty.
例题 6.1c:选择维修保障计划
某合成手机零售商出售一年期维修保障计划,价格 25 美元,涵盖所有维修。不买计划时,一年的维修费用 $X$(美元)以概率 $0.85$ 取 $0$,以概率 $0.10$ 取 $120$,以概率 $0.05$ 取 $300$。(a) 求 $E(X)$。(b) 只看长期平均的顾客应该买这个计划吗?(c) 说出顾客仍可能购买的一个理由。
- 概率之和 $0.85+0.10+0.05=1$,所以分布合法。
- $E(X)=0(0.85)+120(0.10)+300(0.05)=0+12+15=27$ 美元。
- 与计划比较:$27-25=2$。完整答案要结合情境陈述:对大量顾客而言,不买计划时年维修费平均为 27 美元,比计划价格多 2 美元,所以平均每位顾客买计划可省 2 美元。
- 平均值忽略了风险。不买计划时,$5\%$ 的顾客要面对 300 美元的账单,而计划把所有结果变成确定的 25 美元。不愿承担大额账单风险的顾客,可以合理地付出 2 美元的期望成本换取这份确定性。
Presenting a table whose probabilities do not sum to $1$, or calling $E(X)$ "the most likely value". The expected value is a long-run average, and a game is fair only if $E(X)=0$ for the net gain.
给出概率之和不为 $1$ 的表,或把 $E(X)$ 称为“最可能的值”。期望值是长期平均,仅当净收益的 $E(X)=0$ 时游戏才是公平的。
In Example 6.1b a student adds only the prizes: $500(0.001)+100(0.003)+20(0.010)=1.00$, and says a ticket gains 1 dollar on average. That number is the expected prize, not the net gain. The net gain is prize minus the 2 dollar cost, so $E(\text{net})=1.00-2=-1.00$ dollars. Fix: define $X$ as the net gain before computing, or subtract the price from the expected prize at the end.
在例 6.1b 中,有同学只把奖金相加:$500(0.001)+100(0.003)+20(0.010)=1.00$,并说一张彩票平均赚 1 美元。这个数是期望奖金,不是净收益。净收益等于奖金减去 2 美元成本,所以 $E(\text{net})=1.00-2=-1.00$ 美元。改正:先把 $X$ 定义为净收益再计算,或在最后用期望奖金减去价格。
Always give $E(X)$ units and a sentence: "On average, a ticket loses 1.00 dollars in the long run." Never say a single ticket "will" lose 1 dollar.
给 $E(X)$ 带上单位并写一句话:“长期来看,每张彩票平均亏损 1.00 美元。”切勿说单张彩票“会”亏 1 美元。
A table lists $x=0,1,2$ with $P(X=x)=0.3,\,0.5,\,0.3$. Is it a valid distribution?表中 $x=0,1,2$,对应 $P(X=x)=0.3,\,0.5,\,0.3$。这是合法的概率分布吗?
No. Each probability is between $0$ and $1$, but they sum to $1.1\ne1$.
不是。每个概率虽在 $0$ 与 $1$ 之间,但总和为 $1.1\ne1$。
Classify as discrete or continuous: (a) the number of cars in a parking lot; (b) the time a car stays in the lot.判断离散或连续:(a) 停车场中的汽车数;(b) 汽车停留的时间。
(a) discrete (a count). (b) continuous (a measurement that can take any value in an interval).
(a) 离散(计数)。(b) 连续(可取区间内任意值的测量)。
Using Example 6.1a, find $P(X\ne3)$.利用例 6.1a,求 $P(X\ne3)$。
$1-P(X=3)=1-0.20=0.80$.
$1-P(X=3)=1-0.20=0.80$。
Mean and standard deviation of discrete random variables离散随机变量的均值与标准差
- Calculate the mean and standard deviation of a discrete random variable by formula and by calculator.
- Interpret the mean and standard deviation in context.
- Distinguish population parameters $\mu,\sigma$ from sample statistics $\bar x, s$.
- 用公式和计算器求离散随机变量的均值与标准差。
- 结合情境解释均值与标准差。
- 区分总体参数 $\mu,\sigma$ 与样本统计量 $\bar x, s$。
The mean $\mu_X$ locates the center of the distribution and the standard deviation $\sigma_X$ measures the typical distance of $X$ from $\mu_X$, in the same units as $X$. These are parameters computed from probabilities, not statistics computed from a sample.
均值 $\mu_X$ 刻画分布的中心;标准差 $\sigma_X$ 衡量 $X$ 到 $\mu_X$ 的典型距离,单位与 $X$ 相同。它们是由概率算出的参数,而不是由样本算出的统计量。
TI-84: STAT > 1:Edit. Put the values in L1 and the probabilities in L2. Then STAT ▶ CALC > 1:1-Var Stats, type L1,L2 (2ND 1, ,, 2ND 2) and press ENTER. Read $\mu$ as x̄ and $\sigma$ as σx. Do not use Sx, which is a sample standard deviation.
TI-Nspire: in a Calculator page, store the lists as x and p; then sum(x*p) gives $\mu$ and sqrt(sum((x-μ)^2*p)) gives $\sigma$ (replace μ by the stored mean).
TI-84:STAT > 1:Edit,把取值输入 L1,概率输入 L2。然后 STAT ▶ CALC > 1:1-Var Stats,输入 L1,L2(2ND 1、,、2ND 2)并按 ENTER。把 x̄ 读作 $\mu$,把 σx 读作 $\sigma$。不要用 Sx,它是样本标准差。
TI-Nspire:在 Calculator 页面把两个列表存为 x 与 p;然后 sum(x*p) 得 $\mu$,sqrt(sum((x-μ)^2*p)) 得 $\sigma$(把 μ 换成已存的均值)。
A second route to the variance, and a check方差的另一种算法与核对
Squaring deviations is accurate but slow. An equivalent form is $\sigma_X^{2}=E(X^{2})-\mu_X^{2}$, where $E(X^{2})=\sum x^{2}P(x)$. For the reading-days distribution of Example 6.2a, $E(X^{2})=0(0.10)+1(0.30)+4(0.40)+9(0.20)=3.70$ and $\mu_X^{2}=1.7^{2}=2.89$, so $\sigma_X^{2}=3.70-2.89=0.81$, the same answer as before. Use the second route as an independent check on a hand calculation. A variance can never be negative, so a negative result means an arithmetic slip.
逐项平方偏差准确但繁琐。等价的形式是 $\sigma_X^{2}=E(X^{2})-\mu_X^{2}$,其中 $E(X^{2})=\sum x^{2}P(x)$。对例 6.2a 的阅读天数分布,$E(X^{2})=0(0.10)+1(0.30)+4(0.40)+9(0.20)=3.70$,$\mu_X^{2}=1.7^{2}=2.89$,于是 $\sigma_X^{2}=3.70-2.89=0.81$,与前面的结果相同。可以把第二种算法当作对手算结果的独立核对。方差不可能为负,所以出现负数就说明算错了。
Comparing two distributions with the same mean比较均值相同的两个分布
Two distributions can share a mean and still behave very differently. Option A pays 40, 50 or 60 dollars with probabilities $0.25$, $0.50$, $0.25$. Option B pays 0, 50 or 100 dollars with the same probabilities. Both have $\mu=50$ dollars. For A, $\sigma^{2}=(-10)^2(0.25)+0+(10)^2(0.25)=50$, so $\sigma\approx7.07$ dollars. For B, $\sigma^{2}=(-50)^2(0.25)+0+(50)^2(0.25)=1250$, so $\sigma\approx35.36$ dollars. On average the options agree, but B is five times as spread out, so its outcomes are far less predictable. When the means tie, the standard deviation describes the risk, and a comparison in context names both numbers.
两个分布可以均值相同,表现却大不相同。方案 A 以概率 $0.25$、$0.50$、$0.25$ 支付 40、50 或 60 美元;方案 B 以相同的概率支付 0、50 或 100 美元。二者的 $\mu=50$ 美元。对 A,$\sigma^{2}=(-10)^2(0.25)+0+(10)^2(0.25)=50$,所以 $\sigma\approx7.07$ 美元。对 B,$\sigma^{2}=(-50)^2(0.25)+0+(50)^2(0.25)=1250$,所以 $\sigma\approx35.36$ 美元。平均而言两者一致,但 B 的离散程度是 A 的五倍,结果难以预测得多。均值相同时,标准差刻画风险,结合情境的比较要同时说出这两个数。
Using the calculator lists as a check用计算器列表做核对
Before running 1-Var Stats L1,L2, enter sum(L2) on the home screen: it must equal $1$ for a valid distribution. In the output, $\bar x$ equals $\mu_X$ and $\sigma x$ equals $\sigma_X$, and the line $\Sigma x^{2}$ equals $E(X^{2})$ when the second list holds probabilities that sum to $1$. For the clinic distribution of Example 6.2c the output shows $\bar x=1.8$, $\Sigma x^{2}=4.7$ and $\sigma x\approx1.208$, which agree with the hand work. The n line shows $1$ because the probabilities total $1$; Sx is meaningless here and should not be quoted.
运行 1-Var Stats L1,L2 之前,先在主屏幕输入 sum(L2):合法的分布其结果必须为 $1$。在输出中,$\bar x$ 等于 $\mu_X$,$\sigma x$ 等于 $\sigma_X$;当第二个列表是总和为 $1$ 的概率时,$\Sigma x^{2}$ 这一行等于 $E(X^{2})$。对例 6.2c 的诊所分布,输出显示 $\bar x=1.8$,$\Sigma x^{2}=4.7$,$\sigma x\approx1.208$,与手算一致。n 一行显示 $1$,因为概率总和为 $1$;Sx 在这里没有意义,不应引用。
Standard deviation and shape: what the number does and does not tell you标准差与形状:这个数能说明什么、不能说明什么
A standard deviation summarizes typical distance from the mean, nothing more. It does not give the range, and it does not say whether the distribution is symmetric. Distributions with the same $\mu$ and $\sigma$ can have different shapes. To describe a distribution, give the center ($\mu_X$), the spread ($\sigma_X$) and the shape from the histogram, each in context, for example "skewed right, with most orders small and a few very large".
标准差概括的只是到均值的典型距离,仅此而已。它不给出极差,也不说明分布是否对称。$\mu$ 与 $\sigma$ 相同的分布,形状也可能不同。描述一个分布时,要结合情境给出中心($\mu_X$)、离散程度($\sigma_X$)和由直方图得出的形状,例如“右偏,多数订单较小,少数订单很大”。
Why the standard deviation, and what drives it为什么用标准差,以及什么决定它
The variance is measured in squared units, such as $\text{days}^{2}$, which cannot be compared with the data. Taking the square root returns the spread to the units of $X$, which is why $\sigma_X$ is the number we report. Rare, extreme values dominate the variance because deviations are squared. In the raffle of Example 6.2b, the single 500 dollar prize contributes $499^{2}(0.001)=249.0$ of the total variance $283$, about $88\%$ of it, though only one ticket in $1000$ wins it. A large $\sigma$ next to a small mean usually signals a few large values.
方差的单位是平方单位,例如 $\text{days}^{2}$,无法直接与数据比较。开平方后,离散程度回到 $X$ 的单位,所以我们报告的是 $\sigma_X$。由于偏差被平方,罕见的极端值会主导方差。在例 6.2b 的抽奖中,仅一个 500 美元的大奖就贡献了总方差 $283$ 中的 $499^{2}(0.001)=249.0$,约占 $88\%$,尽管 $1000$ 张彩票中只有一张能中它。均值很小而 $\sigma$ 很大,通常说明存在少数很大的值。
Parameters versus statistics: a quick contrast参数与统计量:简短对照
The distribution of Example 6.2a has the parameters $\mu_X=1.7$ and $\sigma_X=0.9$. Now imagine surveying five students and recording $2,1,2,3,1$ reading days. The sample statistics are $\bar x=\dfrac{9}{5}=1.8$ and $s=\sqrt{\dfrac{2.8}{4}}\approx0.837$. They are close to the parameters but not equal, and another sample of five would give different values. Parameters describe the whole distribution and stay fixed; statistics describe one sample and vary from sample to sample.
例 6.2a 的分布有参数 $\mu_X=1.7$ 与 $\sigma_X=0.9$。现在设想调查五名学生,记录到 $2,1,2,3,1$ 天阅读。样本统计量为 $\bar x=\dfrac{9}{5}=1.8$,$s=\sqrt{\dfrac{2.8}{4}}\approx0.837$。它们接近参数但并不相等,再取五名学生的另一份样本会得到不同的值。参数描述整个分布且固定不变;统计量描述一份样本,随样本而变化。
Worked examples例题
Worked Example 6.2a: Days spent reading
For a random student in a synthetic survey, let $X$ be the number of days (out of $3$ school days) the student reads for pleasure: $x=0,1,2,3$ with $P(x)=0.10,\,0.30,\,0.40,\,0.20$. Find $\mu_X$ and $\sigma_X$ and interpret them.
- $\mu_X=0(0.10)+1(0.30)+2(0.40)+3(0.20)=0.30+0.80+0.60=1.7$ days.
- Deviations $x-\mu_X$: $-1.7,\,-0.7,\,0.3,\,1.3$. Weighted squares: $(1.7)^2(0.10)=0.289$, $(0.7)^2(0.30)=0.147$, $(0.3)^2(0.40)=0.036$, $(1.3)^2(0.20)=0.338$.
- $\sigma_X^{2}=0.289+0.147+0.036+0.338=0.81$, so $\sigma_X=\sqrt{0.81}=0.9$ days.
- Interpretation: over many students the number of reading days averages $1.7$ days, and a student's count typically differs from $1.7$ by about $0.9$ days.
例题 6.2a:阅读天数
在一项合成调查中,随机一名学生,设 $X$ 为他在 $3$ 个上课日中课外阅读的天数:$x=0,1,2,3$,$P(x)=0.10,\,0.30,\,0.40,\,0.20$。求 $\mu_X$ 与 $\sigma_X$ 并解释。
- $\mu_X=0(0.10)+1(0.30)+2(0.40)+3(0.20)=0.30+0.80+0.60=1.7$ 天。
- 偏差 $x-\mu_X$:$-1.7,\,-0.7,\,0.3,\,1.3$。加权平方:$(1.7)^2(0.10)=0.289$,$(0.7)^2(0.30)=0.147$,$(0.3)^2(0.40)=0.036$,$(1.3)^2(0.20)=0.338$。
- $\sigma_X^{2}=0.289+0.147+0.036+0.338=0.81$,所以 $\sigma_X=\sqrt{0.81}=0.9$ 天。
- 解释:对大量学生而言,阅读天数平均为 $1.7$ 天,单个学生的天数通常与 $1.7$ 相差约 $0.9$ 天。
Worked Example 6.2b: Items per order and raffle spread
(i) For the order distribution of Example 6.1a ($\mu=2.2$), find $\sigma$. (ii) For the raffle of Example 6.1b ($\mu=-1.00$), find $\sigma$ and comment.
- (i) $\sigma^{2}=(1-2.2)^2(0.35)+(2-2.2)^2(0.30)+(3-2.2)^2(0.20)+(4-2.2)^2(0.10)+(5-2.2)^2(0.05)=0.504+0.012+0.128+0.324+0.392=1.36$.
- So $\sigma=\sqrt{1.36}\approx1.166$ items: a typical order differs from $2.2$ items by about $1.2$ items.
- (ii) Deviations from $-1$: $499,\,99,\,19,\,-1$. $\sigma^{2}=499^2(0.001)+99^2(0.003)+19^2(0.010)+1^2(0.986)=249.001+29.403+3.610+0.986=283.000$.
- $\sigma=\sqrt{283}\approx16.82$ dollars. The standard deviation is large relative to the mean $-1$ dollar: most tickets lose 2 dollars, but rare big prizes make results very spread out.
例题 6.2b:订单商品数与抽奖的离散程度
(i) 对例 6.1a 的订单分布($\mu=2.2$),求 $\sigma$。(ii) 对例 6.1b 的抽奖($\mu=-1.00$),求 $\sigma$ 并评论。
- (i) $\sigma^{2}=(1-2.2)^2(0.35)+(2-2.2)^2(0.30)+(3-2.2)^2(0.20)+(4-2.2)^2(0.10)+(5-2.2)^2(0.05)=0.504+0.012+0.128+0.324+0.392=1.36$。
- 所以 $\sigma=\sqrt{1.36}\approx1.166$ 件:典型订单与 $2.2$ 件相差约 $1.2$ 件。
- (ii) 与 $-1$ 的偏差:$499,\,99,\,19,\,-1$。$\sigma^{2}=499^2(0.001)+99^2(0.003)+19^2(0.010)+1^2(0.986)=249.001+29.403+3.610+0.986=283.000$。
- $\sigma=\sqrt{283}\approx16.82$ 美元。相对于均值 $-1$ 美元,标准差很大:多数彩票亏 2 美元,但少见的大奖使结果非常分散。
Worked Example 6.2c: Waiting patients at a clinic
A synthetic walk-in clinic records $X$, the number of patients already waiting when a new patient arrives: $x=0,1,2,3,4$ with $P(x)=0.15,\,0.30,\,0.25,\,0.20,\,0.10$. (a) Find $\mu_X$ and $\sigma_X$. (b) Find the probability that $X$ is within one standard deviation of the mean. (c) Check $\sigma_X^{2}$ with the second route. (d) Interpret $\mu_X$ and $\sigma_X$ in a sentence.
- $\mu_X=0(0.15)+1(0.30)+2(0.25)+3(0.20)+4(0.10)=0+0.30+0.50+0.60+0.40=1.8$ patients.
- Weighted squares: $(-1.8)^2(0.15)=0.486$, $(-0.8)^2(0.30)=0.192$, $(0.2)^2(0.25)=0.010$, $(1.2)^2(0.20)=0.288$, $(2.2)^2(0.10)=0.484$. So $\sigma_X^{2}=1.46$ and $\sigma_X=\sqrt{1.46}\approx1.208$ patients.
- The interval $\mu_X\pm\sigma_X$ runs from $0.592$ to $3.008$, so the values $1,2,3$ lie inside it: $0.30+0.25+0.20=0.75$.
- Check: $E(X^{2})=0+0.30+4(0.25)+9(0.20)+16(0.10)=0.30+1.00+1.80+1.60=4.70$, and $4.70-1.8^2=4.70-3.24=1.46$, matching step 2.
- Interpretation: when a new patient arrives, an average of $1.8$ patients are already waiting, and the number waiting typically differs from $1.8$ by about $1.2$ patients.
例题 6.2c:诊所候诊人数
某合成门诊诊所记录 $X$,即新患者到达时已在候诊的人数:$x=0,1,2,3,4$,$P(x)=0.15,\,0.30,\,0.25,\,0.20,\,0.10$。(a) 求 $\mu_X$ 与 $\sigma_X$。(b) 求 $X$ 与均值相差不超过一个标准差的概率。(c) 用第二种算法核对 $\sigma_X^{2}$。(d) 用一句话解释 $\mu_X$ 与 $\sigma_X$。
- $\mu_X=0(0.15)+1(0.30)+2(0.25)+3(0.20)+4(0.10)=0+0.30+0.50+0.60+0.40=1.8$ 人。
- 加权平方:$(-1.8)^2(0.15)=0.486$,$(-0.8)^2(0.30)=0.192$,$(0.2)^2(0.25)=0.010$,$(1.2)^2(0.20)=0.288$,$(2.2)^2(0.10)=0.484$。所以 $\sigma_X^{2}=1.46$,$\sigma_X=\sqrt{1.46}\approx1.208$ 人。
- 区间 $\mu_X\pm\sigma_X$ 从 $0.592$ 到 $3.008$,因此取值 $1,2,3$ 都在区间内:$0.30+0.25+0.20=0.75$。
- 核对:$E(X^{2})=0+0.30+4(0.25)+9(0.20)+16(0.10)=0.30+1.00+1.80+1.60=4.70$,而 $4.70-1.8^2=4.70-3.24=1.46$,与第 2 步一致。
- 解释:新患者到达时,平均已有 $1.8$ 人在候诊,候诊人数通常与 $1.8$ 相差约 $1.2$ 人。
Using the calculator's Sx instead of σx; forgetting to take the square root at the end (reporting the variance $0.81$ as the standard deviation); or interpreting $\sigma$ as the range of values.
误用计算器的 Sx 而非 σx;最后忘记开平方(把方差 $0.81$ 当成标准差);或把 $\sigma$ 解释成取值的范围。
For $x=0,1,2,3$ with $P(x)=0.10,\,0.30,\,0.40,\,0.20$, a student writes $\mu=\dfrac{0+1+2+3}{4}=1.5$. That treats every value as equally likely. The distribution puts the most weight on $2$, and the weighted mean is $1.7$. Fix: multiply each value by its probability and add; do not divide again, because the probabilities already sum to $1$.
对 $x=0,1,2,3$,$P(x)=0.10,\,0.30,\,0.40,\,0.20$,有同学写 $\mu=\dfrac{0+1+2+3}{4}=1.5$。这等于把每个取值当作等可能。该分布在 $2$ 上权重最大,加权均值是 $1.7$。改正:把每个取值乘以它的概率再相加,不要再除一次,因为概率之和已经是 $1$。
Interpret both numbers in a sentence with units and context: "The number of reading days averages $1.7$ days, with a typical distance of about $0.9$ days from that mean." Quoting the calculator output alone is an incomplete answer.
用带单位和情境的一句话解释这两个数:“阅读天数平均为 $1.7$ 天,与均值的典型距离约为 $0.9$ 天。”只抄计算器输出是不完整的答案。
$X$ takes $10$ with probability $0.4$ and $20$ with probability $0.6$. Find $\mu_X$ and $\sigma_X$.$X$ 以概率 $0.4$ 取 $10$,以概率 $0.6$ 取 $20$。求 $\mu_X$ 与 $\sigma_X$。
$\mu=10(0.4)+20(0.6)=16$. $\sigma^{2}=(-6)^2(0.4)+(4)^2(0.6)=14.4+9.6=24$, so $\sigma=\sqrt{24}\approx4.90$.
$\mu=10(0.4)+20(0.6)=16$。$\sigma^{2}=(-6)^2(0.4)+(4)^2(0.6)=14.4+9.6=24$,所以 $\sigma=\sqrt{24}\approx4.90$。
A game pays 3 dollars (net gain $+2$ dollars after a 1 dollar stake) with probability $0.25$ and otherwise nothing (net $-1$ dollar). Find $E(X)$ for the net gain. Is the game fair?某游戏以概率 $0.25$ 赢得 3 美元(扣除 1 美元赌注后净赚 $+2$ 美元),否则一无所获(净 $-1$ 美元)。求净收益的 $E(X)$。游戏公平吗?
$E(X)=2(0.25)+(-1)(0.75)=0.50-0.75=-0.25$. Not fair: the player loses 0.25 dollars per game on average.
$E(X)=2(0.25)+(-1)(0.75)=0.50-0.75=-0.25$。不公平:玩家平均每局亏 0.25 美元。
A distribution has $\mu=50$ and $\sigma=0$. What must be true of $X$?某分布 $\mu=50$ 且 $\sigma=0$。$X$ 必然具有什么性质?
$X$ is the constant $50$ with probability $1$: no variation.
$X$ 是常数 $50$,概率为 $1$:没有变异。
Combining random variables随机变量的组合
- Find the mean and standard deviation of a linear transformation $a+bX$.
- Find the mean and standard deviation of $X+Y$ and $X-Y$ for independent variables.
- Explain why variances, not standard deviations, add.
- Use the fact that sums and differences of independent normal variables are normal.
- 求线性变换 $a+bX$ 的均值与标准差。
- 对独立变量求 $X+Y$ 与 $X-Y$ 的均值与标准差。
- 说明为什么相加的是方差而不是标准差。
- 利用独立正态变量的和与差仍为正态这一事实。
New random variables are often built from old ones. A linear transformation multiplies by a constant and adds a constant. Adding or subtracting two random variables combines their distributions.
新的随机变量常由旧的变量构造。线性变换是乘一个常数再加一个常数。两个随机变量的和或差则合并它们的分布。
| Situation | Mean | Standard deviation |
|---|---|---|
| $Y=a+bX$ | $\mu_Y=a+b\mu_X$ | $\sigma_Y=|b|\,\sigma_X$ (adding $a$ does not change spread) |
| $X+Y$ | $\mu_X+\mu_Y$ (always) | $\sqrt{\sigma_X^{2}+\sigma_Y^{2}}$ (only if $X,Y$ independent) |
| $X-Y$ | $\mu_X-\mu_Y$ (always) | $\sqrt{\sigma_X^{2}+\sigma_Y^{2}}$ (only if $X,Y$ independent; variances still add) |
| 情形 | 均值 | 标准差 |
|---|---|---|
| $Y=a+bX$ | $\mu_Y=a+b\mu_X$ | $\sigma_Y=|b|\,\sigma_X$(加常数 $a$ 不改变离散程度) |
| $X+Y$ | $\mu_X+\mu_Y$(总成立) | $\sqrt{\sigma_X^{2}+\sigma_Y^{2}}$(仅当 $X,Y$ 独立) |
| $X-Y$ | $\mu_X-\mu_Y$(总成立) | $\sqrt{\sigma_X^{2}+\sigma_Y^{2}}$(仅当 $X,Y$ 独立;方差仍然相加) |
Means add and subtract always. Variances add for both sums and differences when the variables are independent; standard deviations never add directly. If $X$ and $Y$ are independent and normal, then $X+Y$ and $X-Y$ are also normal.
均值总是可以相加相减。当变量独立时,无论是和还是差,方差都相加;标准差绝不能直接相加。若 $X$、$Y$ 独立且服从正态分布,则 $X+Y$ 与 $X-Y$ 也服从正态分布。
Why variances add: a small enumeration为什么是方差相加:一个小例子
Let $X$ and $Y$ be independent, each equal to $0$ or $1$ with probability $0.5$. Each has $\mu=0.5$ and $\sigma^{2}=0.25$, so $\sigma=0.5$. Their sum $X+Y$ takes the values $0,1,2$ with probabilities $0.25,\,0.50,\,0.25$, so $\mu=1$ and $\sigma^{2}=(-1)^2(0.25)+0+(1)^2(0.25)=0.50=0.25+0.25$. The standard deviation is $\sqrt{0.50}\approx0.707$, not $0.5+0.5=1$. The difference $X-Y$ takes the values $-1,0,1$ with the same probabilities, so it has mean $0$ and the same variance $0.50$.
设 $X$ 与 $Y$ 独立,各以概率 $0.5$ 取 $0$ 或 $1$。每个变量的 $\mu=0.5$,$\sigma^{2}=0.25$,所以 $\sigma=0.5$。它们的和 $X+Y$ 取 $0,1,2$,概率分别为 $0.25,\,0.50,\,0.25$,因此 $\mu=1$,$\sigma^{2}=(-1)^2(0.25)+0+(1)^2(0.25)=0.50=0.25+0.25$。标准差是 $\sqrt{0.50}\approx0.707$,而不是 $0.5+0.5=1$。差 $X-Y$ 取 $-1,0,1$,概率相同,所以均值为 $0$,方差同样是 $0.50$。
Values that miss in opposite directions partly cancel, so the spread of a sum grows more slowly than the sum of the spreads. This is why independence matters: if $Y$ were always equal to $X$, the sum $2X$ would have standard deviation $1$, and the difference $X-X$ would have standard deviation $0$.
朝相反方向偏离的值会部分抵消,所以和的离散程度比各自离散程度之和增长得慢。这就是独立性重要的原因:如果 $Y$ 总等于 $X$,则和 $2X$ 的标准差为 $1$,差 $X-X$ 的标准差为 $0$。
Totals versus multiples of one variable总和与单个变量的倍数
Let $X$ be the number of items in one order, with $\mu_X=2.2$ and $\sigma_X\approx1.166$ (Example 6.1a). Two questions look alike but differ. (1) The total in $5$ separate, independent orders is $T=X_1+X_2+X_3+X_4+X_5$. Then $\mu_T=5(2.2)=11$ and $\sigma_T=\sqrt{5(1.36)}=\sqrt{6.8}\approx2.61$. (2) Five times the items of a single order is $5X$. Then $\mu=5(2.2)=11$ and $\sigma=5(1.166)\approx5.83$.
设 $X$ 为一单订单中的商品数,$\mu_X=2.2$,$\sigma_X\approx1.166$(例 6.1a)。两个问题看似相同,其实不同。(1) $5$ 个独立订单的总数是 $T=X_1+X_2+X_3+X_4+X_5$。此时 $\mu_T=5(2.2)=11$,$\sigma_T=\sqrt{5(1.36)}=\sqrt{6.8}\approx2.61$。(2) 单个订单商品数的五倍是 $5X$。此时 $\mu=5(2.2)=11$,$\sigma=5(1.166)\approx5.83$。
The means agree and the spreads do not. A total of $n$ independent copies has $\sigma_T=\sigma\sqrt{n}$, while $nX$ has $\sigma=n\sigma$. Independent orders partly cancel each other's surprises, but one order multiplied by five cannot. This distinction returns in Unit 7, where a sample mean averages many independent observations.
均值相同,离散程度不同。$n$ 个独立副本之和的 $\sigma_T=\sigma\sqrt{n}$,而 $nX$ 的 $\sigma=n\sigma$。独立的订单会彼此抵消一部分意外,而把一个订单放大五倍则不会。这一区别在单元 7 会再次出现:样本均值正是许多独立观测值的平均。
A procedure for questions about combined normal variables组合正态变量问题的解题步骤
(1) Define the new variable, for example $T=X+Y$ or $D=X-Y$. (2) Mean: combine the means with the same signs as the variable. (3) Standard deviation: state independence, add the variances, then take the square root. (4) Name the model: sums and differences of independent normal variables are normal, so give $N(\mu,\sigma)$. (5) Compute the $z$-score and the area, or use normalcdf. (6) Conclude in context, naming the quantity and the direction of the inequality.
(1) 定义新变量,例如 $T=X+Y$ 或 $D=X-Y$。(2) 均值:按变量中的符号合并各均值。(3) 标准差:说明独立性,把方差相加,再开平方。(4) 写出模型:独立正态变量的和与差仍为正态,所以写出 $N(\mu,\sigma)$。(5) 计算 $z$ 分数与面积,或使用 normalcdf。(6) 结合情境下结论,说明所指的量和不等号的方向。
When the variables are not independent变量不独立时
The mean rule needs no independence: $\mu_{X+Y}=\mu_X+\mu_Y$ always holds. The variance rule does. A parent's height and a child's height are related, so $\sigma_{X+Y}$ is not $\sqrt{\sigma_X^{2}+\sigma_Y^{2}}$ for them, and the course gives no formula for that case. In a problem, look for the words independent, separate or randomly chosen before adding variances, and state the one you rely on.
均值规则不需要独立性:$\mu_{X+Y}=\mu_X+\mu_Y$ 总是成立。方差规则则需要。父母身高与孩子身高相关,所以对它们而言 $\sigma_{X+Y}$ 不等于 $\sqrt{\sigma_X^{2}+\sigma_Y^{2}}$,课程也没有给出这种情形的公式。做题时,相加方差之前要找“独立”“分别”“随机选取”这样的字眼,并写明你依据的是哪一个。
Linear transformations in practice: changing units线性变换的应用:单位换算
A change of units is a linear transformation. Suppose daily high temperatures in a synthetic city have mean $20$ degrees Celsius and standard deviation $3$ degrees. The Fahrenheit temperature is $F=32+1.8C$. Then $\mu_F=32+1.8(20)=68$ degrees and $\sigma_F=1.8(3)=5.4$ degrees. The $32$ moves the center but not the spread; the $1.8$ stretches both the center and the spread. The shape of the distribution is unchanged by a positive multiplier. Use the same rules to convert prices, times or distances without recomputing from the original probabilities.
单位换算就是线性变换。设某合成城市的每日最高气温均值为 $20$ 摄氏度,标准差为 $3$ 度。华氏温度为 $F=32+1.8C$。于是 $\mu_F=32+1.8(20)=68$ 度,$\sigma_F=1.8(3)=5.4$ 度。常数 $32$ 平移中心而不改变离散程度;倍数 $1.8$ 同时拉伸中心与离散程度。正的倍数不改变分布的形状。用同样的规则换算价格、时间或距离,不必从原始概率重新计算。
Totals of different independent variables不同独立变量之和
The rules extend to any number of independent variables, which need not be identical. A synthetic cafe meal has a sandwich $X$ ($\mu=6.5$, $\sigma=0.8$ dollars), a drink $Y$ ($\mu=2.0$, $\sigma=0.5$) and a side $Z$ ($\mu=3.0$, $\sigma=0.6$), with prices varying independently. The total has $\mu=6.5+2.0+3.0=11.5$ dollars. The variances add: $0.64+0.25+0.36=1.25$, so $\sigma=\sqrt{1.25}\approx1.118$ dollars. Adding the three standard deviations would wrongly give $1.9$ dollars. List each variable's mean and variance in a small table before combining.
这些规则可推广到任意多个独立变量,它们不必相同。某合成咖啡馆的套餐有三明治 $X$($\mu=6.5$,$\sigma=0.8$ 美元)、饮料 $Y$($\mu=2.0$,$\sigma=0.5$)和配菜 $Z$($\mu=3.0$,$\sigma=0.6$),价格彼此独立地波动。总价的 $\mu=6.5+2.0+3.0=11.5$ 美元。方差相加:$0.64+0.25+0.36=1.25$,所以 $\sigma=\sqrt{1.25}\approx1.118$ 美元。若把三个标准差相加,会错误地得到 $1.9$ 美元。合并之前,先用小表格列出各变量的均值与方差。
Worked examples例题
Worked Example 6.3a: A linear transformation: order cost
In the order model of Example 6.1a ($\mu_X=2.2$, $\sigma_X\approx1.166$), each item costs 12 dollars and shipping is a flat 5 dollars. Let $C=5+12X$ be the order cost. Find $\mu_C$ and $\sigma_C$.
- $\mu_C=5+12(2.2)=5+26.4=31.40$ dollars.
- $\sigma_C=|12|\times1.166\approx13.99$ dollars. The flat 5 dollars shifts the center but has no effect on spread.
- Interpretation: orders cost an average of 31.40 dollars, typically about 14 dollars away from that average.
例题 6.3a:线性变换:订单费用
在例 6.1a 的订单模型中($\mu_X=2.2$,$\sigma_X\approx1.166$),每件商品 12 美元,运费固定 5 美元。设 $C=5+12X$ 为订单费用。求 $\mu_C$ 与 $\sigma_C$。
- $\mu_C=5+12(2.2)=5+26.4=31.40$ 美元。
- $\sigma_C=|12|\times1.166\approx13.99$ 美元。固定的 5 美元只平移中心,不影响离散程度。
- 解释:订单平均费用为 31.40 美元,与该平均值的典型差距约 14 美元。
Worked Example 6.3b: Sum and difference of independent times
A commuter's bus ride $X$ has $\mu=25$ minutes and $\sigma=4$ minutes; her walk to the stop $Y$ has $\mu=8$ and $\sigma=3$. The two are independent. Find the mean and standard deviation of $T=X+Y$ and of $D=X-Y$. If both are normal, find $P(T>40)$.
- $\mu_T=25+8=33$ minutes and $\mu_D=25-8=17$ minutes.
- Independence lets the variances add: $\sigma_T^{2}=\sigma_D^{2}=4^2+3^2=16+9=25$, so $\sigma_T=\sigma_D=5$ minutes (not $4+3=7$).
- $T$ is normal with $\mu=33$, $\sigma=5$: $z=\dfrac{40-33}{5}=1.40$, so $P(T>40)=P(z>1.40)\approx0.0808$.
- Conclusion: about $8\%$ of her trips take more than $40$ minutes in total.
例题 6.3b:独立时间的和与差
某通勤者的乘公交时间 $X$ 的 $\mu=25$ 分钟、$\sigma=4$ 分钟;走到车站的时间 $Y$ 的 $\mu=8$、$\sigma=3$。两者独立。求 $T=X+Y$ 与 $D=X-Y$ 的均值与标准差。若二者都服从正态分布,求 $P(T>40)$。
- $\mu_T=25+8=33$ 分钟,$\mu_D=25-8=17$ 分钟。
- 独立性使方差相加:$\sigma_T^{2}=\sigma_D^{2}=4^2+3^2=16+9=25$,所以 $\sigma_T=\sigma_D=5$ 分钟(不是 $4+3=7$)。
- $T$ 服从 $\mu=33$、$\sigma=5$ 的正态分布:$z=\dfrac{40-33}{5}=1.40$,所以 $P(T>40)=P(z>1.40)\approx0.0808$。
- 结论:她约有 $8\%$ 的行程总用时超过 $40$ 分钟。
Worked Example 6.3c: Packing a shipping box
A synthetic shipping box weighs $1.2$ kg empty and holds $4$ items. Item weights are independent and normal with mean $2.5$ kg and standard deviation $0.3$ kg. (a) Find the mean and standard deviation of the packed weight $T$. (b) Find $P(T>12)$. (c) Find the probability that the first item is heavier than the second by more than $0.5$ kg.
- $T=1.2+X_1+X_2+X_3+X_4$, so $\mu_T=1.2+4(2.5)=11.2$ kg. The empty box is a constant: it shifts the mean and adds nothing to the variance.
- $\sigma_T^{2}=4(0.3)^2=0.36$, so $\sigma_T=0.6$ kg (not $4(0.3)=1.2$ kg).
- $T$ is a sum of independent normal variables plus a constant, so $T$ is normal: $z=\dfrac{12-11.2}{0.6}\approx1.33$ and $P(T>12)\approx0.091$.
- $D=X_1-X_2$ is normal with $\mu_D=0$ and $\sigma_D=\sqrt{0.3^2+0.3^2}=0.3\sqrt2\approx0.424$ kg. Then $z=\dfrac{0.5-0}{0.424}\approx1.18$ and $P(D>0.5)\approx0.119$.
- Conclusion: about $9\%$ of packed boxes weigh more than $12$ kg, and about $12\%$ of the time the first item is more than $0.5$ kg heavier than the second.
例题 6.3c:装箱重量
某合成货运纸箱空箱重 $1.2$ 千克,装 $4$ 件物品。物品重量相互独立,服从均值 $2.5$ 千克、标准差 $0.3$ 千克的正态分布。(a) 求装箱后总重 $T$ 的均值与标准差。(b) 求 $P(T>12)$。(c) 求第一件比第二件重出 $0.5$ 千克以上的概率。
- $T=1.2+X_1+X_2+X_3+X_4$,所以 $\mu_T=1.2+4(2.5)=11.2$ 千克。空箱是常数:它平移均值,对方差没有贡献。
- $\sigma_T^{2}=4(0.3)^2=0.36$,所以 $\sigma_T=0.6$ 千克(不是 $4(0.3)=1.2$ 千克)。
- $T$ 是独立正态变量之和再加常数,所以 $T$ 服从正态分布:$z=\dfrac{12-11.2}{0.6}\approx1.33$,$P(T>12)\approx0.091$。
- $D=X_1-X_2$ 服从正态分布,$\mu_D=0$,$\sigma_D=\sqrt{0.3^2+0.3^2}=0.3\sqrt2\approx0.424$ 千克。于是 $z=\dfrac{0.5-0}{0.424}\approx1.18$,$P(D>0.5)\approx0.119$。
- 结论:约 $9\%$ 的装箱重量超过 $12$ 千克;约 $12\%$ 的情况下第一件比第二件重出 $0.5$ 千克以上。
In a synthetic game, Player A's score is normal with mean $78$ and standard deviation $6$; Player B's score is normal with mean $74$ and standard deviation $8$. The scores are independent. Find the probability that A scores higher than B.
| Step | What a complete answer states |
|---|---|
| 1 | Define $D=A-B$ and state that we want $P(D>0)$. |
| 2 | Mean: $\mu_D=78-74=4$. Standard deviation, using independence: $\sigma_D=\sqrt{6^2+8^2}=\sqrt{100}=10$. |
| 3 | Justify normality: a difference of independent normal variables is normal, so $D\sim N(4,\,10)$. |
| 4 | Compute: $z=\dfrac{0-4}{10}=-0.40$, so $P(D>0)=P(z>-0.40)\approx0.6554$ (calculator: normalcdf(0,1E99,4,10)). |
| 5 | Conclusion in context: Player A scores higher than Player B in about $65.5\%$ of games. |
在一个合成游戏中,甲的得分服从均值 $78$、标准差 $6$ 的正态分布;乙的得分服从均值 $74$、标准差 $8$ 的正态分布。两人得分独立。求甲得分高于乙的概率。
| 步骤 | 完整答案要点 |
|---|---|
| 1 | 定义 $D=A-B$,并说明要求 $P(D>0)$。 |
| 2 | 均值:$\mu_D=78-74=4$。利用独立性求标准差:$\sigma_D=\sqrt{6^2+8^2}=\sqrt{100}=10$。 |
| 3 | 说明正态性:独立正态变量之差仍服从正态分布,所以 $D\sim N(4,\,10)$。 |
| 4 | 计算:$z=\dfrac{0-4}{10}=-0.40$,所以 $P(D>0)=P(z>-0.40)\approx0.6554$(计算器:normalcdf(0,1E99,4,10))。 |
| 5 | 结合情境的结论:在约 $65.5\%$ 的比赛中,甲的得分高于乙。 |
TI-84: 2ND VARS (DISTR) > 2:normalcdf(, entered as normalcdf(lower, upper, μ, σ). Use 1E99 (2ND , for EE) for "no upper limit".
TI-Nspire: menu > Probability > Distributions > Normal Cdf; enter Lower Bound, Upper Bound, μ, σ.
TI-84:2ND VARS(DISTR)> 2:normalcdf(,输入 normalcdf(下限, 上限, μ, σ)。“没有上限”用 1E99(2ND , 输入 EE)。
TI-Nspire:menu > Probability > Distributions > Normal Cdf;输入下限、上限、μ、σ。
Adding standard deviations ($4+3=7$) instead of variances; subtracting variances for a difference; and treating $2X$ like $X_1+X_2$. For one variable doubled, $\sigma_{2X}=2\sigma_X$ (variance $4\sigma_X^2$); for two independent copies, $\sigma_{X_1+X_2}=\sqrt2\,\sigma_X$ (variance $2\sigma_X^2$).
把标准差相加($4+3=7$)而不是方差;求差时把方差相减;把 $2X$ 当作 $X_1+X_2$。同一变量加倍时,$\sigma_{2X}=2\sigma_X$(方差 $4\sigma_X^2$);两个独立副本相加时,$\sigma_{X_1+X_2}=\sqrt2\,\sigma_X$(方差 $2\sigma_X^2$)。
For $Y=5-2X$ with $\mu_X=2.2$ and $\sigma_X\approx1.166$, a student writes $\sigma_Y=-2(1.166)=-2.33$. A standard deviation is never negative. The multiplier $-2$ flips the distribution and moves the mean to $\mu_Y=5-2(2.2)=0.6$, but the spread is stretched by $|-2|=2$: $\sigma_Y=2(1.166)\approx2.33$. Fix: use the absolute value of the multiplier for the standard deviation, and the signed multiplier for the mean.
对 $Y=5-2X$,$\mu_X=2.2$,$\sigma_X\approx1.166$,有同学写 $\sigma_Y=-2(1.166)=-2.33$。标准差绝不会是负数。倍数 $-2$ 把分布翻转,并把均值移到 $\mu_Y=5-2(2.2)=0.6$,但离散程度被拉伸 $|-2|=2$ 倍:$\sigma_Y=2(1.166)\approx2.33$。改正:标准差用倍数的绝对值,均值用带符号的倍数。
Whenever you add variances, write the sentence "since $X$ and $Y$ are independent". The rule does not apply without independence, so a complete answer states it.
每当相加方差时,写上一句“因为 $X$ 与 $Y$ 独立”。没有独立性,这条规则就不成立,因此完整的答案要写明这一点。
$E(X)=10$ and $\sigma_X=3$. Find the mean and standard deviation of $Y=4-2X$.$E(X)=10$,$\sigma_X=3$。求 $Y=4-2X$ 的均值与标准差。
$\mu_Y=4-2(10)=-16$; $\sigma_Y=|-2|(3)=6$ (the sign of $b$ drops out of the spread).
$\mu_Y=4-2(10)=-16$;$\sigma_Y=|-2|(3)=6$($b$ 的符号不影响离散程度)。
$X$ has mean $50$, SD $4$; $Y$ has mean $30$, SD $3$; independent. Find the mean and SD of $X-Y$.$X$ 的均值 $50$、标准差 $4$;$Y$ 的均值 $30$、标准差 $3$;二者独立。求 $X-Y$ 的均值与标准差。
Mean $50-30=20$; SD $\sqrt{4^2+3^2}=\sqrt{25}=5$.
均值 $50-30=20$;标准差 $\sqrt{4^2+3^2}=\sqrt{25}=5$。
Why is $\sigma_{X+Y}$ not equal to $\sigma_X+\sigma_Y$ for independent variables?为什么对独立变量 $\sigma_{X+Y}$ 不等于 $\sigma_X+\sigma_Y$?
Variances add, not standard deviations. In Example 6.3b, $\sqrt{16+9}=5<4+3=7$: independent variation partly cancels, so the combined spread is smaller than the sum of the spreads.
相加的是方差而不是标准差。在例 6.3b 中,$\sqrt{16+9}=5<4+3=7$:独立的波动会部分抵消,所以合并后的离散程度小于各自之和。
Introduction to the binomial distribution二项分布入门
- Verify the four binomial conditions (BINS) in context.
- Compute binomial probabilities with the formula and with binompdf and binomcdf.
- Handle "at least", "at most" and "between" using cumulative probabilities and complements.
- Recognize situations that are not binomial.
- 在情境中检验二项分布的四个条件(BINS)。
- 用公式以及 binompdf、binomcdf 计算二项概率。
- 用累积概率与补集处理“至少”“至多”“介于”。
- 识别不属于二项分布的情形。
A binomial setting counts the number of successes in a fixed number of trials. Check all four conditions, remembered as BINS: Binary outcomes (success or failure), Independent trials, a fixed Number of trials, and the Same probability of success on every trial. Then $X\sim B(n,p)$ counts the successes.
二项设定计的是固定次数试验中的成功次数。需检验四个条件,记作 BINS:Binary 结果只有成功或失败,Independent 各次试验独立,Number 试验次数固定,Same 每次成功概率相同。此时 $X\sim B(n,p)$ 表示成功次数。
Sampling without replacement from a population is approximately binomial when the sample is less than $10\%$ of the population (so independence is approximately true). "At most $k$" is $P(X\le k)$ and "at least $k$" is $P(X\ge k)=1-P(X\le k-1)$. State the model, for example $X\sim B(10,0.70)$, before computing.
不放回抽样时,若样本不超过总体的 $10\%$,则近似为二项分布(独立性近似成立)。“至多 $k$”是 $P(X\le k)$,“至少 $k$”是 $P(X\ge k)=1-P(X\le k-1)$。计算前先写出模型,例如 $X\sim B(10,0.70)$。
TI-84: 2ND VARS (DISTR), scroll to binompdf( for $P(X=k)$ or binomcdf( for $P(X\le k)$. The argument order is always (n, p, k). For $P(X\ge k)$ type 1-binomcdf(n,p,k-1).
TI-Nspire: menu > Probability > Distributions > Binomial Pdf (or Binomial Cdf). Enter Num Trials $n$, Prob Success $p$ and X Value (Pdf), or Lower and Upper Bound (Cdf). Typed form: binomPdf(n,p,k), binomCdf(n,p,lower,upper).
TI-84:2ND VARS(DISTR),向下找到 binompdf((求 $P(X=k)$)或 binomcdf((求 $P(X\le k)$)。参数顺序始终是 (n, p, k)。求 $P(X\ge k)$ 输入 1-binomcdf(n,p,k-1)。
TI-Nspire:menu > Probability > Distributions > Binomial Pdf(或 Binomial Cdf)。输入试验次数 $n$、成功概率 $p$ 与 X 值(Pdf),或下界与上界(Cdf)。键入形式:binomPdf(n,p,k)、binomCdf(n,p,lower,upper)。
Practice interactively with the binomial sampling simulator (switch between the count $X$ and the proportion $\hat p$).
可用二项抽样模拟器做互动练习(在计数 $X$ 与比例 $\hat p$ 之间切换)。
Synthetic illustrative model. A player makes each free throw with probability $0.70$, independently. Let $X$ be the number of makes in $n=10$ shots, so $X\sim B(10,0.70)$.
- For $P(X=8)$: press
2NDVARS(DISTR), scroll toA:binompdf(and pressENTER. Complete it asbinompdf(10,0.70,8)and pressENTER. The screen shows.2334744405, so $P(X=8)\approx0.2335$. The argument order is always(n, p, k). - For $P(X\ge8)$: press
2NDVARS, scroll toB:binomcdf(and pressENTER. Complete it as1-binomcdf(10,0.70,7), becausebinomcdf(gives $P(X\le7)$. The screen shows.38278279, so $P(X\ge8)\approx0.3828$. - Hand check: $\mu=np=10(0.70)=7$ makes and $\sigma=\sqrt{10(0.70)(0.30)}=\sqrt{2.1}\approx1.449$ makes.
- Interpret in context: "In about $23.3\%$ of ten-shot sets she makes exactly $8$, and in about $38.3\%$ she makes $8$ or more. Over many sets she averages $7$ makes."
- Nspire:
menu> Probability > Distributions > Binomial Pdf, then enter Num Trials $10$, Prob Success $0.7$ and X Value $8$; use Binomial Cdf for $P(X\le7)$.
Open the bilingual calculation stepper to see these steps one at a time.
合成教学模型。一名球员每次罚球命中概率为 $0.70$,各次独立。设 $X$ 为 $n=10$ 次投篮中的命中次数,则 $X\sim B(10,0.70)$。
- 求 $P(X=8)$:按
2NDVARS(DISTR),向下找到A:binompdf(并按ENTER。补全为binompdf(10,0.70,8)并按ENTER。屏幕显示.2334744405,所以 $P(X=8)\approx0.2335$。参数顺序始终是(n, p, k)。 - 求 $P(X\ge8)$:按
2NDVARS,向下找到B:binomcdf(并按ENTER。补全为1-binomcdf(10,0.70,7),因为binomcdf(给出的是 $P(X\le7)$。屏幕显示.38278279,所以 $P(X\ge8)\approx0.3828$。 - 手算核对:$\mu=np=10(0.70)=7$ 次,$\sigma=\sqrt{10(0.70)(0.30)}=\sqrt{2.1}\approx1.449$ 次。
- 结合情境解释:“在约 $23.3\%$ 的十次投篮中她恰好命中 $8$ 次,在约 $38.3\%$ 的十次投篮中她命中 $8$ 次或更多。很多组下来,她平均命中 $7$ 次。”
- Nspire:
menu> Probability > Distributions > Binomial Pdf,然后输入试验次数 $10$、成功概率 $0.7$ 与 X 值 $8$;求 $P(X\le7)$ 用 Binomial Cdf。
打开中英双语计算演示,可逐步查看这些步骤。
Checking BINS: five settings to sort检验 BINS:五个情境的分类
For each setting, ask whether all four conditions hold, and name the failing condition when one does not.
对每个情境,都要问四个条件是否全部成立;若有条件不成立,要指出是哪一个。
| Setting | Binomial? | Reason |
|---|---|---|
| Number of heads in $10$ flips of a fair coin | Yes, $B(10,0.5)$ | All four conditions hold. |
| Number of hearts in a $7$-card hand from a $52$-card deck | No | Cards are not replaced and $7/52\approx13\%$ is more than $10\%$ of the deck, so the probability of a heart changes from card to card. |
| Number of left-handed students in a random sample of $60$ from a school of $1200$ | Approximately | $60/1200=5\%$ is under $10\%$, so independence is approximately true. |
| A player's successes in $10$ shots while she tires and her chance falls from $0.8$ to $0.5$ | No | The probability of success is not the same on every trial. |
| Number of rolls of a die until the first $6$ | No (geometric) | The number of trials is not fixed. |
| 情境 | 是二项吗? | 理由 |
|---|---|---|
| 均匀硬币抛 $10$ 次的正面数 | 是,$B(10,0.5)$ | 四个条件都成立。 |
| 从 $52$ 张牌中发 $7$ 张手牌的红桃数 | 否 | 牌不放回,且 $7/52\approx13\%$ 超过牌堆的 $10\%$,所以抽到红桃的概率逐张变化。 |
| 从 $1200$ 人的学校随机抽 $60$ 人,其中左撇子的人数 | 近似是 | $60/1200=5\%$ 低于 $10\%$,独立性近似成立。 |
| 球员投篮 $10$ 次的命中数,她逐渐疲劳,命中率从 $0.8$ 降到 $0.5$ | 否 | 每次试验的成功概率不相同。 |
| 掷骰子直到第一次出现 $6$ 所需的次数 | 否(几何) | 试验次数不固定。 |
Where the formula comes from公式从何而来
Take $n=4$ trials with $p=0.30$ and ask for exactly $2$ successes. One arrangement, success-success-failure-failure, has probability $(0.30)(0.30)(0.70)(0.70)=0.30^{2}\,0.70^{2}$, because the trials are independent. Every arrangement of $2$ successes among $4$ trials has this same probability, and there are $\binom{4}{2}=6$ arrangements. So $P(X=2)=6(0.30)^{2}(0.70)^{2}=6(0.09)(0.49)=0.2646$. In general, $\binom{n}{k}$ counts the arrangements and $p^{k}(1-p)^{n-k}$ is the probability of each one.
取 $n=4$ 次试验,$p=0.30$,求恰有 $2$ 次成功的概率。其中一种排列“成功、成功、失败、失败”的概率为 $(0.30)(0.30)(0.70)(0.70)=0.30^{2}\,0.70^{2}$,因为各次试验独立。$4$ 次试验中任何一种含 $2$ 次成功的排列概率都相同,共有 $\binom{4}{2}=6$ 种排列。所以 $P(X=2)=6(0.30)^{2}(0.70)^{2}=6(0.09)(0.49)=0.2646$。一般地,$\binom{n}{k}$ 数出排列的种数,$p^{k}(1-p)^{n-k}$ 是每种排列的概率。
Translating words into cumulative probabilities把文字翻译成累积概率
| Words | Probability | TI-84 for $X\sim B(n,p)$ |
|---|---|---|
| exactly $k$ | $P(X=k)$ | binompdf(n,p,k) |
| at most $k$, or $k$ or fewer | $P(X\le k)$ | binomcdf(n,p,k) |
| fewer than $k$ | $P(X\le k-1)$ | binomcdf(n,p,k-1) |
| at least $k$, or $k$ or more | $1-P(X\le k-1)$ | 1-binomcdf(n,p,k-1) |
| more than $k$ | $1-P(X\le k)$ | 1-binomcdf(n,p,k) |
| between $a$ and $b$ inclusive | $P(X\le b)-P(X\le a-1)$ | binomcdf(n,p,b)-binomcdf(n,p,a-1) |
| 文字表述 | 概率 | TI-84($X\sim B(n,p)$) |
|---|---|---|
| 恰好 $k$ | $P(X=k)$ | binompdf(n,p,k) |
| 至多 $k$,即 $k$ 或更少 | $P(X\le k)$ | binomcdf(n,p,k) |
| 少于 $k$ | $P(X\le k-1)$ | binomcdf(n,p,k-1) |
| 至少 $k$,即 $k$ 或更多 | $1-P(X\le k-1)$ | 1-binomcdf(n,p,k-1) |
| 多于 $k$ | $1-P(X\le k)$ | 1-binomcdf(n,p,k) |
| 在 $a$ 与 $b$ 之间(含两端) | $P(X\le b)-P(X\le a-1)$ | binomcdf(n,p,b)-binomcdf(n,p,a-1) |
Example: for $X\sim B(15,0.40)$, $P(4\le X\le8)=\texttt{binomcdf}(15,0.4,8)-\texttt{binomcdf}(15,0.4,3)=0.9050-0.0905=0.8145$. The lower cumulative argument is $a-1=3$, because $P(X\le3)$ removes exactly the values below $4$.
例:对 $X\sim B(15,0.40)$,$P(4\le X\le8)=\texttt{binomcdf}(15,0.4,8)-\texttt{binomcdf}(15,0.4,3)=0.9050-0.0905=0.8145$。较小的累积参数取 $a-1=3$,因为 $P(X\le3)$ 恰好去掉小于 $4$ 的那些取值。
At least one: the complement trick“至少一个”:补事件技巧
The event "at least one success" is the complement of "no successes", and $P(X=0)=(1-p)^{n}$. So $P(X\ge1)=1-(1-p)^{n}$. A student guesses every one of the $12$ four-choice questions on a quiz: $P(X\ge1)=1-0.75^{12}\approx0.9683$. The same idea works for any phrase that starts with at least: find the opposite event, which has fewer values, and subtract from $1$.
“至少一次成功”是“没有成功”的补事件,而 $P(X=0)=(1-p)^{n}$。所以 $P(X\ge1)=1-(1-p)^{n}$。某学生对一次测验中的 $12$ 道四选一题全部猜答案:$P(X\ge1)=1-0.75^{12}\approx0.9683$。凡是以“至少”开头的说法都可用同样的思路:先求取值更少的对立事件,再用 $1$ 去减。
Layout of a complete binomial solution完整的二项问题解答的写法
(1) Define $X$ in context. (2) Name the model $X\sim B(n,p)$ and check BINS using the wording of the problem; for a sample without replacement, add the $10\%$ condition. (3) Write the probability in symbols, for example $P(X\ge10)=1-P(X\le9)$. (4) State the calculator call, such as 1-binomcdf(20,0.35,9). (5) Answer in context as a sentence. A bare number leaves the reader to guess the model and the event.
(1) 结合情境定义 $X$。(2) 写出模型 $X\sim B(n,p)$,并依据题目的措辞检验 BINS;对不放回的抽样,再加上 $10\%$ 条件。(3) 用符号写出概率,例如 $P(X\ge10)=1-P(X\le9)$。(4) 写出计算器命令,如 1-binomcdf(20,0.35,9)。(5) 用一句话结合情境作答。只写一个数字,会让读者去猜用的是什么模型、什么事件。
Simulating binomial counts on a calculator在计算器上模拟二项计数
A simulation checks a calculation and builds intuition. On a TI-84, randBin(10,0.7,100) returns $100$ simulated counts of successes in $10$ trials with $p=0.7$. Store them in L1, then find the proportion with a count of at least $8$, for example with sum(L1>=8)/100. Expect a value near the exact $P(X\ge8)\approx0.383$ from Example 6.4a, but not equal to it, and different on each run. More simulated counts give a closer estimate, while the exact binomial calculation stays the answer when it is requested.
模拟可以核对计算并帮助建立直觉。在 TI-84 上,randBin(10,0.7,100) 给出 $100$ 个模拟计数,每个是 $10$ 次试验($p=0.7$)中的成功次数。把它们存入 L1,再求计数至少为 $8$ 的比例,例如用 sum(L1>=8)/100。结果应接近例 6.4a 中的精确值 $P(X\ge8)\approx0.383$,但不会相等,且每次运行都不同。模拟次数越多,估计越接近;而题目要求时,答案仍应使用精确的二项计算。
The whole binomial distribution as a list把整个二项分布看成一个列表
On a TI-84, binompdf(n,p) with the last argument omitted returns every probability from $k=0$ to $k=n$. For $B(4,0.30)$ the list is $0.2401,\;0.4116,\;0.2646,\;0.0756,\;0.0081$. Store it in L2 next to the values $0$ to $4$ in L1. The list sums to $1$, the highest bar sits at $k=1$ (the most likely count), and the mean from 1-Var Stats L1,L2 is $np=1.2$. The whole list gives a quick way to see the shape of the distribution and to confirm any single probability you computed.
在 TI-84 上,省略最后一个参数的 binompdf(n,p) 会给出从 $k=0$ 到 $k=n$ 的所有概率。对 $B(4,0.30)$,列表为 $0.2401,\;0.4116,\;0.2646,\;0.0756,\;0.0081$。把它存入 L2,并在 L1 中放入 $0$ 到 $4$。列表之和为 $1$,最高的柱子在 $k=1$(最可能的计数),由 1-Var Stats L1,L2 得到的均值为 $np=1.2$。整个列表可以帮助你快速看出分布的形状,并核对你算出的任何一个概率。
Worked examples例题
Worked Example 6.4a: Ten free throws
A player makes each free throw with probability $0.70$, independently. In $n=10$ shots, find $P(X=8)$ and $P(X\ge8)$.
- BINS check: made or missed (binary); shots independent; $n=10$ fixed; $p=0.70$ each shot. So $X\sim B(10,0.70)$.
- $P(X=8)=\binom{10}{8}(0.70)^{8}(0.30)^{2}=45(0.05764801)(0.09)\approx0.2335$. Calculator:
binompdf(10,0.7,8)returns $0.2334744$. - $P(X\ge8)=1-P(X\le7)=1-\texttt{binomcdf}(10,0.7,7)=1-0.6172\approx0.3828$. This equals $0.2335+0.1211+0.0282$.
- Interpretation: in about $38\%$ of ten-shot sets she makes $8$ or more.
例题 6.4a:十次罚球
一名球员每次罚球命中概率为 $0.70$,各次独立。投 $n=10$ 次,求 $P(X=8)$ 与 $P(X\ge8)$。
- BINS 检验:命中或未中(二元);各次投篮独立;$n=10$ 固定;每次 $p=0.70$。所以 $X\sim B(10,0.70)$。
- $P(X=8)=\binom{10}{8}(0.70)^{8}(0.30)^{2}=45(0.05764801)(0.09)\approx0.2335$。计算器:
binompdf(10,0.7,8)返回 $0.2334744$。 - $P(X\ge8)=1-P(X\le7)=1-\texttt{binomcdf}(10,0.7,7)=1-0.6172\approx0.3828$。这等于 $0.2335+0.1211+0.0282$。
- 解释:在约 $38\%$ 的十次投篮中,她命中 $8$ 次或更多。
Worked Example 6.4b: Guessing on a multiple-choice quiz
A quiz has $12$ questions, each with $4$ choices, and a student guesses every answer independently. Let $X$ be the number correct. Find $P(X=0)$, $P(X=3)$, $P(X\le3)$ and $P(X\ge6)$.
- Model: $X\sim B(12,0.25)$ (binary, independent, $n=12$, $p=0.25$ each).
- $P(X=0)=0.75^{12}\approx0.0317$.
- $P(X=3)=\binom{12}{3}(0.25)^3(0.75)^9=220(0.015625)(0.0750847)\approx0.2581$.
- $P(X\le3)=\texttt{binomcdf}(12,0.25,3)\approx0.6488$.
- $P(X\ge6)=1-\texttt{binomcdf}(12,0.25,5)=1-0.9456\approx0.0544$: guessing reaches half the quiz only about $5\%$ of the time.
例题 6.4b:选择题猜答案
某测验有 $12$ 道题,每题 $4$ 个选项,学生每题独立随机猜答案。设 $X$ 为答对的题数。求 $P(X=0)$、$P(X=3)$、$P(X\le3)$ 与 $P(X\ge6)$。
- 模型:$X\sim B(12,0.25)$(二元、独立、$n=12$、每题 $p=0.25$)。
- $P(X=0)=0.75^{12}\approx0.0317$。
- $P(X=3)=\binom{12}{3}(0.25)^3(0.75)^9=220(0.015625)(0.0750847)\approx0.2581$。
- $P(X\le3)=\texttt{binomcdf}(12,0.25,3)\approx0.6488$。
- $P(X\ge6)=1-\texttt{binomcdf}(12,0.25,5)=1-0.9456\approx0.0544$:靠猜答对一半以上的情形只占约 $5\%$。
Worked Example 6.4c: Email opens
A synthetic marketing team sends $20$ emails to randomly chosen subscribers from a very large list. Each email is opened with probability $0.35$, independently. Let $X$ be the number opened. (a) Verify the binomial conditions. (b) Find $P(X\ge10)$ and $P(5\le X\le9)$. (c) Find $P(X=7)$ and comment on it.
- Binary: each email is opened or not. Independent: stated, and reasonable for randomly chosen subscribers from a very large list. Fixed number: $n=20$. Same probability: $p=0.35$ for every email. So $X\sim B(20,0.35)$.
- $P(X\ge10)=1-P(X\le9)=1-\texttt{binomcdf}(20,0.35,9)=1-0.8782=0.1218$.
- $P(5\le X\le9)=\texttt{binomcdf}(20,0.35,9)-\texttt{binomcdf}(20,0.35,4)=0.8782-0.1182=0.7600$.
- $P(X=7)=\texttt{binompdf}(20,0.35,7)\approx0.1844$. The expected count is $np=7$, yet even this most likely count occurs in under $20\%$ of campaigns.
- Conclusion: about $12\%$ of campaigns of this size get $10$ or more opens, about $76\%$ get between $5$ and $9$ opens, and the single most likely count, $7$, still happens less than $20\%$ of the time.
例题 6.4c:邮件打开数
某合成营销团队向一个很大名单中随机选取的订阅者发送 $20$ 封邮件。每封邮件以概率 $0.35$ 被打开,相互独立。设 $X$ 为被打开的邮件数。(a) 验证二项条件。(b) 求 $P(X\ge10)$ 与 $P(5\le X\le9)$。(c) 求 $P(X=7)$ 并加以评论。
- 二元:每封邮件要么被打开,要么没有。独立:题目已说明,且对从很大名单中随机选取的订阅者是合理的。试验次数固定:$n=20$。概率相同:每封邮件 $p=0.35$。所以 $X\sim B(20,0.35)$。
- $P(X\ge10)=1-P(X\le9)=1-\texttt{binomcdf}(20,0.35,9)=1-0.8782=0.1218$。
- $P(5\le X\le9)=\texttt{binomcdf}(20,0.35,9)-\texttt{binomcdf}(20,0.35,4)=0.8782-0.1182=0.7600$。
- $P(X=7)=\texttt{binompdf}(20,0.35,7)\approx0.1844$。期望个数是 $np=7$,但即使是这个最可能的个数,也只在不到 $20\%$ 的发送批次中出现。
- 结论:此规模的邮件批次中,约 $12\%$ 的打开数达到 $10$ 封或更多,约 $76\%$ 的打开数在 $5$ 到 $9$ 封之间,而最可能的单一个数 $7$ 出现的频率仍低于 $20\%$。
A garden-supply company states that each seed in its tomato packets germinates with probability $0.85$, independently of the other seeds. A gardener plants all $12$ seeds from one packet and lets $X$ be the number that germinate. (a) Verify that a binomial model fits. (b) Find the probability that at least $10$ of the $12$ seeds germinate. (c) Find the mean and the standard deviation of $X$ and interpret the mean in context.
| Part | What a complete answer states |
|---|---|
| (a) | Binary: each seed either germinates or does not. Independent: the stem says the seeds germinate independently. Fixed number: $n=12$ seeds are planted. Same probability: $p=0.85$ for every seed. So $X\sim B(12,0.85)$. |
| (b) | "At least $10$" is $P(X\ge10)=1-P(X\le9)$. Calculator: 1-binomcdf(12,0.85,9) $=1-0.2642\approx0.7358$. In context: in about $73.6\%$ of packets, at least $10$ of the $12$ seeds germinate. |
| (c) | $\mu_X=12(0.85)=10.2$ seeds and $\sigma_X=\sqrt{12(0.85)(0.15)}=\sqrt{1.53}\approx1.24$ seeds. Over many packets the number of seeds that germinate averages $10.2$ per packet, a value no single packet can show, and the count in a packet typically differs from $10.2$ by about $1.2$ seeds. |
某园艺公司声称其番茄种子包中的每粒种子以概率 $0.85$ 发芽,且各粒种子互不影响。一位园丁种下一包中全部 $12$ 粒种子,设 $X$ 为发芽的粒数。(a) 验证二项模型适用。(b) 求 $12$ 粒种子中至少 $10$ 粒发芽的概率。(c) 求 $X$ 的均值与标准差,并结合情境解释均值。
| 部分 | 完整答案要点 |
|---|---|
| (a) | 二元:每粒种子要么发芽要么不发芽。独立:题干说明各粒种子发芽相互独立。次数固定:共种 $n=12$ 粒。概率相同:每粒 $p=0.85$。所以 $X\sim B(12,0.85)$。 |
| (b) | “至少 $10$ 粒”是 $P(X\ge10)=1-P(X\le9)$。计算器:1-binomcdf(12,0.85,9) $=1-0.2642\approx0.7358$。结合情境:在约 $73.6\%$ 的种子包中,$12$ 粒种子里至少有 $10$ 粒发芽。 |
| (c) | $\mu_X=12(0.85)=10.2$ 粒,$\sigma_X=\sqrt{12(0.85)(0.15)}=\sqrt{1.53}\approx1.24$ 粒。大量种子包下来,每包发芽的粒数平均为 $10.2$ 粒,而单个种子包不可能恰为该值;一包中的发芽粒数通常与 $10.2$ 相差约 $1.2$ 粒。 |
Using binomcdf for "exactly" or forgetting that "at least $6$" is $1-P(X\le5)$, not $1-P(X\le6)$. Also, drawing cards until an ace appears is not binomial because $n$ is not fixed.
“恰好”时误用 binomcdf,或忘记“至少 $6$”是 $1-P(X\le5)$ 而不是 $1-P(X\le6)$。另外,一直抽牌直到出现 A 不是二项分布,因为 $n$ 不固定。
Dealing $7$ cards and counting hearts counts successes, but the cards are not replaced and $7$ cards are $13\%$ of the deck, so the probability of a heart changes after every card. This setting is not binomial, and the binomial formula would give only a rough answer. Fix: run through BINS before writing $B(n,p)$, and for a sample drawn without replacement state that it is less than $10\%$ of the population.
发 $7$ 张牌并数红桃,看似在数成功次数,但牌不放回,且 $7$ 张占牌堆的 $13\%$,所以每抽一张,抽到红桃的概率都会变化。这个情境不是二项分布,用二项公式只能得到粗略的答案。改正:写出 $B(n,p)$ 之前先逐项检验 BINS;对不放回的抽样,要说明样本不超过总体的 $10\%$。
A complete answer names the model and verifies BINS in context, then writes the calculator call, for example binompdf(12, 0.25, 3), along with the answer. A bare number without the model is an incomplete answer.
完整的答案要写出模型并结合情境验证 BINS,再写出计算器命令(如 binompdf(12, 0.25, 3))及答案。只有数字而没有模型,答案是不完整的。
Which are binomial? (a) heads in $20$ flips of a fair coin; (b) cards dealt from a deck until the first ace; (c) defective items in a random sample of $15$ from a very large lot that is $5\%$ defective.哪些是二项分布?(a) 公平硬币抛 $20$ 次的正面数;(b) 从牌堆发牌直到第一张 A 的张数;(c) 从缺陷率 $5\%$ 的超大批量中随机抽 $15$ 件的缺陷件数。
(a) yes. (b) no, $n$ is not fixed (this is geometric). (c) yes: binary, fixed $n=15$, $p=0.05$, and the sample is under $10\%$ of the lot, so trials are approximately independent.
(a) 是。(b) 否,$n$ 不固定(这是几何分布)。(c) 是:二元,$n=15$ 固定,$p=0.05$,且样本不超过批量的 $10\%$,试验近似独立。
$X\sim B(5,0.4)$. Find $P(X=2)$.$X\sim B(5,0.4)$。求 $P(X=2)$。
$\binom52(0.4)^2(0.6)^3=10(0.16)(0.216)=0.3456$.
$\binom52(0.4)^2(0.6)^3=10(0.16)(0.216)=0.3456$。
A component fails independently with probability $0.1$. In a batch of $8$, find the probability at least one fails.某元件独立地以概率 $0.1$ 失效。一批 $8$ 个中,求至少有一个失效的概率。
$P(X\ge1)=1-P(X=0)=1-0.9^8=1-0.4305\approx0.5695$.
$P(X\ge1)=1-P(X=0)=1-0.9^8=1-0.4305\approx0.5695$。
Parameters of the binomial distribution二项分布的参数
- Compute and interpret the mean and standard deviation of a binomial random variable.
- Describe how the shape of a binomial distribution depends on $n$ and $p$.
- Check the condition for a normal approximation to the binomial and use it when appropriate.
- Decide whether an observed count is unusual using $z$-scores or exact binomial probabilities.
- 计算并解释二项随机变量的均值与标准差。
- 描述二项分布的形状如何随 $n$ 与 $p$ 变化。
- 检验用正态分布近似二项分布的条件,并在合适时使用。
- 用 $z$ 分数或精确二项概率判断观测计数是否反常。
These shortcuts come from adding $n$ independent success-or-failure variables, each with mean $p$ and variance $p(1-p)$, using the rules of Topic 6.3: means add to $np$ and variances add to $np(1-p)$. Interpret $\mu$ as the long-run average number of successes over many sets of $n$ trials.
这两个简便公式来自把 $n$ 个独立的“成功或失败”变量相加(每个均值为 $p$、方差为 $p(1-p)$),再用主题 6.3 的规则:均值相加为 $np$,方差相加为 $np(1-p)$。$\mu$ 的含义是:重复很多组 $n$ 次试验时,成功次数的长期平均。
The shape of $B(n,p)$ is skewed right for small $p$, skewed left for large $p$, and symmetric at $p=0.5$; it becomes more bell-shaped as $n$ increases. A normal approximation is reasonable when both $np\ge10$ and $n(1-p)\ge10$. Then $X$ is approximately $N\big(np,\sqrt{np(1-p)}\big)$.
$B(n,p)$ 的形状:$p$ 小时右偏,$p$ 大时左偏,$p=0.5$ 时对称;随 $n$ 增大越来越接近钟形。当 $np\ge10$ 且 $n(1-p)\ge10$ 时,正态近似是合理的,此时 $X$ 近似服从 $N\big(np,\sqrt{np(1-p)}\big)$。
The condition $np\ge10$ and $n(1-p)\ge10$ reappears as the Large Counts condition for the sampling distribution of a sample proportion (Unit 7). The count $X$ and the proportion $\hat p=X/n$ carry the same information on different scales.
条件 $np\ge10$ 且 $n(1-p)\ge10$ 以“大计数条件”的形式再次出现在样本比例的抽样分布中(单元 7)。计数 $X$ 与比例 $\hat p=X/n$ 包含同样的信息,只是尺度不同。
How n and p control the shapen 与 p 如何决定分布形状
| Distribution | $\mu=np$ | $\sigma$ | Shape |
|---|---|---|---|
| $B(10,0.1)$ | $1$ | $0.949$ | skewed right |
| $B(10,0.5)$ | $5$ | $1.581$ | symmetric |
| $B(10,0.9)$ | $9$ | $0.949$ | skewed left |
| $B(100,0.1)$ | $10$ | $3$ | close to bell-shaped; $np=10$ and $n(1-p)=90$ both reach the condition |
| 分布 | $\mu=np$ | $\sigma$ | 形状 |
|---|---|---|---|
| $B(10,0.1)$ | $1$ | $0.949$ | 右偏 |
| $B(10,0.5)$ | $5$ | $1.581$ | 对称 |
| $B(10,0.9)$ | $9$ | $0.949$ | 左偏 |
| $B(100,0.1)$ | $10$ | $3$ | 接近钟形;$np=10$ 与 $n(1-p)=90$ 都达到条件 |
Moving $p$ toward $0.5$ makes the distribution symmetric. Moving $p$ toward $0$ or $1$ piles probability against the boundary, with the long tail on the other side. Increasing $n$ at a fixed $p$ raises the mean in proportion to $n$ but the standard deviation only in proportion to $\sqrt{n}$, so relative to its mean the spread shrinks and the shape smooths out. That is the reason a normal model eventually fits.
把 $p$ 移向 $0.5$,分布趋于对称。把 $p$ 移向 $0$ 或 $1$,概率堆积在边界一侧,长尾在另一侧。在 $p$ 固定时增大 $n$,均值按 $n$ 的比例上升,而标准差只按 $\sqrt{n}$ 的比例上升,所以相对于均值而言,离散程度变小,形状变得更平滑。这就是正态模型最终能拟合的原因。
Continuity correction for a normal approximation正态近似中的连续性校正
A binomial count takes whole-number values, while a normal curve is continuous. In a histogram, the bar for $X=k$ covers the interval from $k-0.5$ to $k+0.5$, so the approximation is more accurate when its boundary sits halfway between whole numbers. With $Y\sim N\big(np,\sqrt{np(1-p)}\big)$, the rules are $P(X\ge k)\approx P(Y\ge k-0.5)$, $P(X\le k)\approx P(Y\le k+0.5)$ and $P(X=k)\approx P(k-0.5\le Y\le k+0.5)$.
二项计数只取整数值,而正态曲线是连续的。在直方图中,$X=k$ 的柱子覆盖从 $k-0.5$ 到 $k+0.5$ 的区间,所以当近似的边界落在两个整数中间时更准确。设 $Y\sim N\big(np,\sqrt{np(1-p)}\big)$,规则是 $P(X\ge k)\approx P(Y\ge k-0.5)$,$P(X\le k)\approx P(Y\le k+0.5)$,$P(X=k)\approx P(k-0.5\le Y\le k+0.5)$。
For Example 6.5a, $P(X\ge100)$ becomes $P(Y\ge99.5)$: $z=\dfrac{99.5-93}{5.94}\approx1.09$, which gives $0.137$. That is much closer to the exact $0.1368$ than the uncorrected $0.119$. The correction matters most when $\sigma$ is small. When the calculator can return the exact binomial probability, use it, and keep the normal approximation for a check or for a problem that asks for it.
对例 6.5a,$P(X\ge100)$ 变成 $P(Y\ge99.5)$:$z=\dfrac{99.5-93}{5.94}\approx1.09$,得到 $0.137$。这比未校正的 $0.119$ 更接近精确值 $0.1368$。$\sigma$ 越小,校正越重要。若计算器能直接给出精确的二项概率,就用它;正态近似留作核对,或用于题目要求使用它的情形。
Counts versus proportions计数与比例
The count $X$ and the sample proportion $\hat p=X/n$ carry the same information on different scales. Dividing by $n$ divides the mean and the standard deviation by $n$. For $X\sim B(400,0.20)$, the count has $\mu_X=80$ and $\sigma_X=8$, so $\hat p$ has $\mu_{\hat p}=\dfrac{80}{400}=0.20$ and $\sigma_{\hat p}=\dfrac{8}{400}=0.02$. Equivalently, $\sigma_{\hat p}=\sqrt{\dfrac{p(1-p)}{n}}=\sqrt{\dfrac{0.2(0.8)}{400}}=0.02$. Unit 7 builds the sampling distribution of $\hat p$ from this idea.
计数 $X$ 与样本比例 $\hat p=X/n$ 携带相同的信息,只是尺度不同。除以 $n$ 会把均值和标准差都除以 $n$。对 $X\sim B(400,0.20)$,计数的 $\mu_X=80$,$\sigma_X=8$,所以 $\hat p$ 的 $\mu_{\hat p}=\dfrac{80}{400}=0.20$,$\sigma_{\hat p}=\dfrac{8}{400}=0.02$。等价地,$\sigma_{\hat p}=\sqrt{\dfrac{p(1-p)}{n}}=\sqrt{\dfrac{0.2(0.8)}{400}}=0.02$。单元 7 正是由这一思想建立 $\hat p$ 的抽样分布。
Judging whether a count is unusual判断一个计数是否不寻常
Compare an observed count with what the model predicts, using the $z$-score $\dfrac{x-\mu}{\sigma}$ or an exact probability. A value more than $2$ standard deviations from the mean is unusual. Suppose a coin that is claimed to be fair lands heads $63$ times in $100$ flips. Under $B(100,0.5)$, $\mu=50$ and $\sigma=5$, so $z=\dfrac{63-50}{5}=2.6$. The exact value is $P(X\ge63)\approx0.0060$. A result this far out would be rare for a fair coin, which raises doubt about the claim; Units 8 and 9 make such a judgment formal.
把观测到的计数与模型的预测比较,可以用 $z$ 分数 $\dfrac{x-\mu}{\sigma}$ 或精确概率。与均值相差超过 $2$ 个标准差的值是不寻常的。设一枚声称均匀的硬币抛 $100$ 次出现 $63$ 次正面。在 $B(100,0.5)$ 下,$\mu=50$,$\sigma=5$,所以 $z=\dfrac{63-50}{5}=2.6$。精确值为 $P(X\ge63)\approx0.0060$。对均匀硬币而言这样极端的结果很少见,使人对该说法产生怀疑;单元 8 与单元 9 会把这种判断形式化。
Where np and the square root come fromnp 与平方根的来历
Treat each trial as a variable $I$ that equals $1$ for a success and $0$ for a failure. With $p=0.3$, $\mu_I=0(0.7)+1(0.3)=0.3$ and $\sigma_I^{2}=(0-0.3)^2(0.7)+(1-0.3)^2(0.3)=0.063+0.147=0.21=p(1-p)$. The count of successes in $n=10$ independent trials is the sum of ten such variables, so by Topic 6.3, $\mu_X=10(0.3)=3$ and $\sigma_X^{2}=10(0.21)=2.1$, which gives $\sigma_X=\sqrt{2.1}\approx1.449$. The square root appears because variances add, not standard deviations.
把每次试验看成一个变量 $I$:成功取 $1$,失败取 $0$。当 $p=0.3$ 时,$\mu_I=0(0.7)+1(0.3)=0.3$,$\sigma_I^{2}=(0-0.3)^2(0.7)+(1-0.3)^2(0.3)=0.063+0.147=0.21=p(1-p)$。$n=10$ 次独立试验中的成功次数就是十个这样的变量之和,由主题 6.3,$\mu_X=10(0.3)=3$,$\sigma_X^{2}=10(0.21)=2.1$,于是 $\sigma_X=\sqrt{2.1}\approx1.449$。出现平方根,是因为相加的是方差,而不是标准差。
A reasonableness check on the parameters对参数做合理性检验
Before trusting a hand calculation, test it. The mean $np$ must lie between $0$ and $n$. The standard deviation $\sqrt{np(1-p)}$ is largest at $p=0.5$, where it equals $\dfrac{\sqrt{n}}{2}$, so it can never exceed that. For $n=150$ the bound is $\dfrac{\sqrt{150}}{2}\approx6.12$, and the answer $5.94$ from Example 6.5a respects it. A result above the bound, or a mean outside $0$ to $n$, signals a slip such as forgetting the square root.
信任手算结果之前先检验它。均值 $np$ 必须在 $0$ 与 $n$ 之间。标准差 $\sqrt{np(1-p)}$ 在 $p=0.5$ 时最大,等于 $\dfrac{\sqrt{n}}{2}$,所以它绝不会超过这个数。当 $n=150$ 时,上界是 $\dfrac{\sqrt{150}}{2}\approx6.12$,例 6.5a 的答案 $5.94$ 满足这个界。结果若超过上界,或均值落在 $0$ 到 $n$ 之外,就说明出了差错,例如忘记开平方。
Worked examples例题
Worked Example 6.5a: Enrollment: mean, SD and a normal approximation
In a synthetic admissions model, each of $150$ admitted students independently enrolls with probability $0.62$. Let $X$ be the number who enroll. Find $\mu_X$, $\sigma_X$, check the normal condition, and approximate $P(X\ge100)$.
- $X\sim B(150,0.62)$. $\mu=150(0.62)=93$ students and $\sigma=\sqrt{150(0.62)(0.38)}=\sqrt{35.34}\approx5.94$ students.
- Condition: $np=93\ge10$ and $n(1-p)=57\ge10$, so $X$ is approximately $N(93,\,5.94)$.
- $z=\dfrac{100-93}{5.94}\approx1.18$, so $P(X\ge100)\approx P(z\ge1.18)\approx0.119$.
- Exact check: $1-\texttt{binomcdf}(150,0.62,99)\approx0.1368$. The approximation is a little low because it treats the count as continuous without a continuity correction; with the calculator available the exact binomial value is preferred, and the approximation is mainly a tool for understanding and for sampling distributions.
例题 6.5a:入学人数:均值、标准差与正态近似
在一个合成的招生模型中,$150$ 名被录取的学生各自独立地以概率 $0.62$ 入学。设 $X$ 为入学人数。求 $\mu_X$、$\sigma_X$,检验正态条件,并近似计算 $P(X\ge100)$。
- $X\sim B(150,0.62)$。$\mu=150(0.62)=93$ 人,$\sigma=\sqrt{150(0.62)(0.38)}=\sqrt{35.34}\approx5.94$ 人。
- 条件:$np=93\ge10$ 且 $n(1-p)=57\ge10$,所以 $X$ 近似服从 $N(93,\,5.94)$。
- $z=\dfrac{100-93}{5.94}\approx1.18$,所以 $P(X\ge100)\approx P(z\ge1.18)\approx0.119$。
- 精确值验算:$1-\texttt{binomcdf}(150,0.62,99)\approx0.1368$。近似值略低,因为它把计数当作连续量而没有做连续性校正;有计算器时更宜用精确二项概率,正态近似主要用于理解和抽样分布。
Worked Example 6.5b: When the normal approximation fails
A process makes defective parts independently with probability $0.02$. In a batch of $n=200$, let $X$ be the number defective. Find $\mu$ and $\sigma$, check the normal condition, and find $P(X\ge8)$ exactly.
- $\mu=200(0.02)=4$ defects; $\sigma=\sqrt{200(0.02)(0.98)}=\sqrt{3.92}\approx1.98$.
- Condition: $np=4<10$, so the normal approximation is not appropriate. The distribution is skewed right.
- Exact: $P(X\ge8)=1-\texttt{binomcdf}(200,0.02,7)\approx0.0493$.
- A (wrong) normal approximation would give $z=(8-4)/1.98\approx2.02$ and $P\approx0.0217$, less than half the true value. Checking the condition prevents this error.
例题 6.5b:正态近似失效的情形
某工序独立地以概率 $0.02$ 产生缺陷件。一批 $n=200$ 件中,设 $X$ 为缺陷件数。求 $\mu$ 与 $\sigma$,检验正态条件,并精确求 $P(X\ge8)$。
- $\mu=200(0.02)=4$ 件;$\sigma=\sqrt{200(0.02)(0.98)}=\sqrt{3.92}\approx1.98$。
- 条件:$np=4<10$,所以不适合用正态近似。分布右偏。
- 精确值:$P(X\ge8)=1-\texttt{binomcdf}(200,0.02,7)\approx0.0493$。
- (错误的)正态近似会得 $z=(8-4)/1.98\approx2.02$、$P\approx0.0217$,不到真实值的一半。检验条件可避免这类错误。
Worked Example 6.5c: Gift notes on bakery orders
A synthetic online bakery finds that each order independently includes a gift note with probability $0.20$. On one day there are $n=400$ orders. Let $X$ be the number with a gift note. (a) Find $\mu_X$ and $\sigma_X$. (b) Check that a normal approximation is appropriate. (c) Approximate $P(X\le62)$ with a continuity correction and compare with the exact value. (d) Is a day with $62$ or fewer gift notes unusual?
- $X\sim B(400,0.20)$, so $\mu=400(0.20)=80$ notes and $\sigma=\sqrt{400(0.20)(0.80)}=\sqrt{64}=8$ notes.
- $np=80\ge10$ and $n(1-p)=320\ge10$, so $X$ is approximately $N(80,\,8)$.
- With the correction, $P(X\le62)\approx P(Y\le62.5)$: $z=\dfrac{62.5-80}{8}\approx-2.19$, giving $0.0143$. The exact value is $\texttt{binomcdf}(400,0.2,62)\approx0.0125$. Without the correction, $z=-2.25$ gives $0.0122$. Both approximations are within $0.002$ of the exact value because $\sigma=8$ is large.
- Conclusion in context: $62$ is $2.25$ standard deviations below the expected $80$ notes, and only about $1.3\%$ of days have $62$ or fewer. Such a day is unusual and is worth checking for a cause, for example a change in how customers are offered the gift option.
例题 6.5c:烘焙店订单的礼品卡片
某合成网上烘焙店发现,每笔订单独立地以概率 $0.20$ 附带礼品卡片。某一天共有 $n=400$ 笔订单。设 $X$ 为附带卡片的订单数。(a) 求 $\mu_X$ 与 $\sigma_X$。(b) 检验使用正态近似是否合适。(c) 用连续性校正近似 $P(X\le62)$,并与精确值比较。(d) 一天中卡片数不超过 $62$ 算不寻常吗?
- $X\sim B(400,0.20)$,所以 $\mu=400(0.20)=80$ 张,$\sigma=\sqrt{400(0.20)(0.80)}=\sqrt{64}=8$ 张。
- $np=80\ge10$ 且 $n(1-p)=320\ge10$,所以 $X$ 近似服从 $N(80,\,8)$。
- 用校正:$P(X\le62)\approx P(Y\le62.5)$:$z=\dfrac{62.5-80}{8}\approx-2.19$,得 $0.0143$。精确值为 $\texttt{binomcdf}(400,0.2,62)\approx0.0125$。不校正时 $z=-2.25$,得 $0.0122$。因为 $\sigma=8$ 较大,两种近似与精确值的差都在 $0.002$ 以内。
- 结合情境的结论:$62$ 比期望的 $80$ 张低 $2.25$ 个标准差,只有约 $1.3\%$ 的日子卡片数不超过 $62$。这样的一天不寻常,值得查找原因,例如向顾客提供礼品选项的方式是否改变。
A shipping company claims that $90\%$ of its packages arrive on time. In a random sample of $25$ packages, $19$ arrived on time. Assuming the claim is true, how unusual is a result as low as $19$?
| Step | What a complete answer states |
|---|---|
| 1 | Model and conditions: $X$ = number on time, $X\sim B(25,0.90)$ (binary, independent, $n=25$ fixed, same $p$; $25$ is under $10\%$ of all packages). |
| 2 | Parameters: $\mu=25(0.90)=22.5$ and $\sigma=\sqrt{25(0.90)(0.10)}=1.5$. The observed $19$ is $\dfrac{19-22.5}{1.5}\approx-2.33$ standard deviations from the mean. |
| 3 | Use the exact binomial, because $n(1-p)=2.5<10$ so a normal approximation is not valid: $P(X\le19)=\texttt{binomcdf}(25,0.9,19)\approx0.0334$. |
| 4 | Conclusion in context: if $90\%$ of packages really arrive on time, a sample with $19$ or fewer on time would occur in about $3.3\%$ of samples. That is unusual, which casts doubt on the company's claim; whether the evidence is convincing is decided by the formal tests of the inference units. |
某快递公司声称其 $90\%$ 的包裹准时送达。随机抽取 $25$ 个包裹,其中 $19$ 个准时送达。假设该声称为真,出现低至 $19$ 的结果有多反常?
| 步骤 | 完整答案要点 |
|---|---|
| 1 | 模型与条件:$X$ 为准时送达的包裹数,$X\sim B(25,0.90)$(二元、独立、$n=25$ 固定、$p$ 相同;$25$ 不超过全部包裹的 $10\%$)。 |
| 2 | 参数:$\mu=25(0.90)=22.5$,$\sigma=\sqrt{25(0.90)(0.10)}=1.5$。观测值 $19$ 与均值相差 $\dfrac{19-22.5}{1.5}\approx-2.33$ 个标准差。 |
| 3 | 因为 $n(1-p)=2.5<10$,正态近似无效,故用精确二项概率:$P(X\le19)=\texttt{binomcdf}(25,0.9,19)\approx0.0334$。 |
| 4 | 结合情境的结论:若 $90\%$ 的包裹确实准时送达,则准时包裹数不超过 $19$ 的样本约占 $3.3\%$。这很少见,使公司的声称受到质疑;证据是否令人信服,要由推断单元中的正式检验来判断。 |
Applying the normal approximation without checking $np\ge10$ and $n(1-p)\ge10$; writing $\sigma=np(1-p)$ without the square root; and interpreting $\mu$ as the most likely count rather than the long-run average.
不检验 $np\ge10$ 与 $n(1-p)\ge10$ 就用正态近似;写出不带根号的 $\sigma=np(1-p)$;把 $\mu$ 解释成最可能的计数而不是长期平均。
For $X\sim B(400,0.20)$, a student writes $P(X=80)=0$ because a normal curve has no area at a single point. The count is discrete, and $P(X=80)\approx0.0498$ (binompdf(400,0.2,80)). Fix: use binompdf, or, with the normal model, use the interval from $79.5$ to $80.5$, which also gives about $0.0498$.
对 $X\sim B(400,0.20)$,有同学写 $P(X=80)=0$,理由是正态曲线在单点处没有面积。但这个计数是离散的,$P(X=80)\approx0.0498$(binompdf(400,0.2,80))。改正:用 binompdf;若用正态模型,则取从 $79.5$ 到 $80.5$ 的区间,同样得到约 $0.0498$。
When a question says "use a normal approximation", write the two inequalities with their numerical values first. When it does not, the exact binomial is the safer and more accurate choice if the calculator can do it.
若题目说“用正态近似”,先写出两个不等式及其数值。若没有这样要求,且计算器能算,则精确二项概率更稳妥、更准确。
$X\sim B(100,0.3)$. Find $\mu$ and $\sigma$ and decide whether a normal approximation is reasonable.$X\sim B(100,0.3)$。求 $\mu$ 与 $\sigma$,并判断正态近似是否合理。
$\mu=30$, $\sigma=\sqrt{100(0.3)(0.7)}=\sqrt{21}\approx4.58$. $np=30\ge10$ and $n(1-p)=70\ge10$, so yes.
$\mu=30$,$\sigma=\sqrt{100(0.3)(0.7)}=\sqrt{21}\approx4.58$。$np=30\ge10$,$n(1-p)=70\ge10$,所以合理。
Is a normal approximation reasonable for $B(40,0.1)$?对 $B(40,0.1)$ 用正态近似合理吗?
No: $np=4<10$.
不合理:$np=4<10$。
Which is more skewed, $B(20,0.1)$ or $B(20,0.5)$? Explain.$B(20,0.1)$ 与 $B(20,0.5)$ 哪个更偏斜?说明理由。
$B(20,0.1)$: it is skewed right with most mass near $\mu=2$ and a long tail, while $B(20,0.5)$ is symmetric about $10$.
$B(20,0.1)$:它右偏,大部分概率集中在 $\mu=2$ 附近并有长尾;而 $B(20,0.5)$ 关于 $10$ 对称。
The geometric distribution几何分布
- Recognize a geometric setting and state its conditions.
- Compute geometric probabilities with the formula and with geometpdf and geometcdf.
- Find and interpret the mean $1/p$ and standard deviation.
- Distinguish geometric from binomial settings.
- 识别几何分布的设定并陈述其条件。
- 用公式以及 geometpdf、geometcdf 计算几何概率。
- 求并解释均值 $1/p$ 与标准差。
- 区分几何设定与二项设定。
A geometric setting repeats independent trials, each with the same success probability $p$, until the first success. The random variable $X$ is the number of the trial on which the first success occurs, so $X=1,2,3,\dots$ with no upper limit. Compare binomial: a fixed $n$ and a count of successes.
几何设定重复进行独立试验,每次成功概率相同为 $p$,直到首次成功为止。随机变量 $X$ 是首次成功发生在第几次试验,故 $X=1,2,3,\dots$ 且没有上限。与二项分布对比:二项的 $n$ 固定,计的是成功次数。
Conditions: binary trials, independent, the same $p$, and counting trials until the first success. The probabilities fall steadily, so the distribution is always skewed right and the most likely value is $1$, yet the mean $1/p$ can be much larger. The mean is the long-run average number of trials needed.
条件:二元试验、相互独立、$p$ 相同,并且计的是直到首次成功的试验次数。概率逐步下降,所以分布总是右偏,最可能的取值是 $1$,但均值 $1/p$ 可以大得多。均值是所需试验次数的长期平均。
This guide teaches the geometric distribution as part of the unit. Course descriptions change between exam years, so check the current College Board course and exam description to see whether it is assessed in your exam year.
本指南把几何分布作为本单元内容来讲解。课程说明会随考试年份调整,请查阅 College Board 当前的课程与考试说明,确认你所在的考试年份是否考查它。
TI-84: 2ND VARS (DISTR), scroll to geometpdf( for $P(X=k)$ and geometcdf( for $P(X\le k)$. The argument order is (p, k). For $P(X>k)$ use 1-geometcdf(p,k).
TI-Nspire: menu > Probability > Distributions > Geometric Pdf or Geometric Cdf. Typed forms: geomPdf(p,k) and geomCdf(p,1,k) for $P(X\le k)$.
TI-84:2ND VARS(DISTR),向下找到 geometpdf((求 $P(X=k)$)与 geometcdf((求 $P(X\le k)$)。参数顺序为 (p, k)。求 $P(X>k)$ 用 1-geometcdf(p,k)。
TI-Nspire:menu > Probability > Distributions > Geometric Pdf 或 Geometric Cdf。键入形式:geomPdf(p,k),以及用于 $P(X\le k)$ 的 geomCdf(p,1,k)。
Where the geometric formulas come from, and memorylessness几何分布公式的来源与无记忆性
For the first success to occur on trial $k$, the first $k-1$ trials must all fail, each with probability $1-p$, and then trial $k$ must succeed. That gives $(1-p)^{k-1}p$. The first success comes after trial $k$ exactly when the first $k$ trials all fail, so $P(X>k)=(1-p)^{k}$.
要使第一次成功恰好出现在第 $k$ 次试验,前 $k-1$ 次都必须失败(每次概率 $1-p$),然后第 $k$ 次成功。这就得到 $(1-p)^{k-1}p$。第一次成功出现在第 $k$ 次之后,当且仅当前 $k$ 次都失败,所以 $P(X>k)=(1-p)^{k}$。
These tail probabilities show an important property: past failures do not change the future. In Example 6.6a ($p=0.15$), suppose the first $3$ packs had no rare card. The chance of needing more than $2$ further packs is $\dfrac{P(X>5)}{P(X>3)}=\dfrac{0.85^{5}}{0.85^{3}}=0.85^{2}=0.7225$, which equals the chance of needing more than $2$ packs from a fresh start. The trials are independent, so a run of bad luck does not make a success due.
这些尾概率显示了一条重要性质:过去的失败不会改变未来。在例 6.6a($p=0.15$)中,假设前 $3$ 包都没有稀有卡。再需要超过 $2$ 包的概率为 $\dfrac{P(X>5)}{P(X>3)}=\dfrac{0.85^{5}}{0.85^{3}}=0.85^{2}=0.7225$,等于从头开始需要超过 $2$ 包的概率。各次试验相互独立,所以接连的坏运气并不会让成功“该来了”。
Choosing between geometric and binomial, and the phrase at least one几何与二项的选择,以及“至少一个”的说法
| Question about the packs | Model | Reason |
|---|---|---|
| How many packs until the first rare card? | geometric, $p=0.15$ | counts trials until the first success |
| How many rare cards in $10$ packs? | binomial, $B(10,0.15)$ | fixed $n$, counts successes |
| Is there at least one rare card in $10$ packs? | complement: $1-0.85^{10}\approx0.803$ | the complement of all ten packs missing; it equals the geometric $P(X\le10)$ |
| 关于卡包的问题 | 模型 | 理由 |
|---|---|---|
| 开几包才出现第一张稀有卡? | 几何,$p=0.15$ | 计数直到首次成功 |
| $10$ 包中有几张稀有卡? | 二项,$B(10,0.15)$ | $n$ 固定,数成功次数 |
| $10$ 包中至少有一张稀有卡吗? | 补事件:$1-0.85^{10}\approx0.803$ | 十包全部落空的补事件;等于几何变量的 $P(X\le10)$ |
The two models answer different questions about the same trials, and their means agree: $10$ packs at $6.67$ packs per rare card is $\dfrac{10}{6.67}=1.5$ rare cards, which equals the binomial mean $np=10(0.15)=1.5$.
两个模型针对同样的试验回答不同的问题,它们的均值是协调的:$10$ 包、每张稀有卡平均 $6.67$ 包,对应 $\dfrac{10}{6.67}=1.5$ 张稀有卡,恰等于二项分布的均值 $np=10(0.15)=1.5$。
Designing a simulation for a geometric variable为几何随机变量设计模拟
A simulation estimates a probability when counting by hand is awkward. For Example 6.6a: (1) Assign numbers: let the integers $1$ to $15$ mean a rare card and $16$ to $100$ mean no rare card, so each pack succeeds with probability $0.15$. (2) Simulate one trial of the experiment: generate numbers with randInt(1,100) one at a time until one is at most $15$, and record how many numbers were generated. (3) Repeat many times, for example $100$ repetitions, recording each count. (4) Estimate $P(X>5)$ as the fraction of counts greater than $5$, and $\mu_X$ as the average count.
当手工计数很麻烦时,可以用模拟来估计概率。以例 6.6a 为例:(1) 分配数字:令整数 $1$ 到 $15$ 表示出现稀有卡,$16$ 到 $100$ 表示没有稀有卡,使每包成功的概率为 $0.15$。(2) 模拟一次试验:用 randInt(1,100) 逐个生成数字,直到某个数不超过 $15$,记录共生成了多少个数。(3) 重复多次,例如 $100$ 次,记录每次的个数。(4) 估计:用大于 $5$ 的个数所占的比例估计 $P(X>5)$,用个数的平均值估计 $\mu_X$。
Expect results near $0.444$ and $6.67$, a little different on every run. More repetitions give estimates closer to the true values.
结果应接近 $0.444$ 与 $6.67$,每次运行都略有不同。重复次数越多,估计越接近真值。
Shape, median and the mean of a geometric variable几何随机变量的形状、中位数与均值
Because $P(X=k)=(1-p)^{k-1}p$ falls as $k$ grows, every geometric distribution is skewed right with its highest bar at $k=1$. The median is the smallest $k$ with $P(X\le k)\ge0.5$. For $p=0.15$: $P(X\le4)=1-0.85^{4}\approx0.478$ and $P(X\le5)=1-0.85^{5}\approx0.556$, so the median is $5$ packs. The mean $1/p\approx6.67$ packs is larger than the median, as expected for a right-skewed distribution. Half of all collectors find a rare card within $5$ packs, yet the long tail of unlucky collectors pulls the average up.
因为 $P(X=k)=(1-p)^{k-1}p$ 随 $k$ 增大而下降,所以每个几何分布都是右偏的,最高的柱子在 $k=1$。中位数是满足 $P(X\le k)\ge0.5$ 的最小 $k$。当 $p=0.15$:$P(X\le4)=1-0.85^{4}\approx0.478$,$P(X\le5)=1-0.85^{5}\approx0.556$,所以中位数是 $5$ 包。均值 $1/p\approx6.67$ 包大于中位数,这符合右偏分布的特点。一半的收藏者在 $5$ 包以内就能开到稀有卡,但运气差的收藏者形成的长尾把平均值拉高了。
Counting trials versus counting failures数试验次数与数失败次数
This guide counts the trials up to and including the first success, so $X=1,2,3,\dots$ and $\mu_X=1/p$. Some other sources count only the failures before the first success, $Y=X-1=0,1,2,\dots$. Then $\mu_Y=\dfrac{1-p}{p}$, one less than $1/p$, and the formulas for probabilities change accordingly. For $p=0.15$, the mean number of packs is $6.67$ and the mean number of unsuccessful packs is $5.67$. Check which convention a problem uses before applying a formula, and say in your answer what $X$ counts.
本指南数的是直到并包括首次成功的试验次数,所以 $X=1,2,3,\dots$,$\mu_X=1/p$。另一些资料只数首次成功之前的失败次数,$Y=X-1=0,1,2,\dots$。此时 $\mu_Y=\dfrac{1-p}{p}$,比 $1/p$ 少一,概率公式也随之改变。当 $p=0.15$ 时,平均需要 $6.67$ 包,平均落空的包数为 $5.67$。套用公式之前,先确认题目用的是哪种约定,并在答案中说明 $X$ 数的是什么。
Combining geometric variables: waiting for several successes几何变量的组合:等待多次成功
Suppose a collector wants $3$ rare cards from Example 6.6a. The packs needed for each one are independent geometric variables with $\mu=6.67$ and $\sigma^{2}=\dfrac{1-p}{p^{2}}=\dfrac{0.85}{0.0225}\approx37.78$. By the rules of Topic 6.3, the total has mean $3(6.67)=20$ packs and variance $3(37.78)\approx113.3$, so $\sigma\approx10.65$ packs. The total is not itself geometric, because it counts trials until the third success, but the combining rules still give its center and spread.
假设收藏者想要例 6.6a 中的 $3$ 张稀有卡。获得每一张所需的包数是独立的几何变量,$\mu=6.67$,$\sigma^{2}=\dfrac{1-p}{p^{2}}=\dfrac{0.85}{0.0225}\approx37.78$。由主题 6.3 的规则,总包数的均值为 $3(6.67)=20$ 包,方差为 $3(37.78)\approx113.3$,所以 $\sigma\approx10.65$ 包。总数本身不是几何分布,因为它数的是直到第三次成功的试验次数,但组合规则仍然给出它的中心和离散程度。
Worked examples例题
Worked Example 6.6a: Opening packs until a rare card appears
In a synthetic collectible card game each pack independently contains a rare card with probability $p=0.15$. Let $X$ be the number of packs opened until the first rare card. Find $P(X=4)$, $P(X>5)$, $\mu_X$ and $\sigma_X$.
- Geometric setting: independent packs, same $p=0.15$, count packs until the first success.
- $P(X=4)=(0.85)^{3}(0.15)\approx0.0921$. Calculator:
geometpdf(0.15,4). - $P(X>5)=(0.85)^{5}\approx0.4437$, the probability the first five packs all miss. Equivalently
1-geometcdf(0.15,5). - $\mu=1/0.15\approx6.67$ packs and $\sigma=\sqrt{0.85}/0.15\approx6.15$ packs. A collector needs about $6.7$ packs on average, with a large spread.
例题 6.6a:开卡包直到抽到稀有卡
在一个合成的集换式卡牌游戏中,每个卡包独立地以概率 $p=0.15$ 含一张稀有卡。设 $X$ 为开到第一张稀有卡所开的卡包数。求 $P(X=4)$、$P(X>5)$、$\mu_X$ 与 $\sigma_X$。
- 几何设定:各卡包独立,$p=0.15$ 相同,计数直到首次成功的卡包数。
- $P(X=4)=(0.85)^{3}(0.15)\approx0.0921$。计算器:
geometpdf(0.15,4)。 - $P(X>5)=(0.85)^{5}\approx0.4437$,即前五包都未抽到的概率。等价于
1-geometcdf(0.15,5)。 - $\mu=1/0.15\approx6.67$ 包,$\sigma=\sqrt{0.85}/0.15\approx6.15$ 包。收集者平均需要约 $6.7$ 包,离散程度很大。
Worked Example 6.6b: Inspecting items until the first defect
An inspector checks items one at a time; each item is independently defective with probability $0.05$. Find the probability that the first defect appears within the first $10$ items, the probability it is exactly the $10$th, and the expected number inspected.
- $X$ is geometric with $p=0.05$.
- $P(X\le10)=1-(0.95)^{10}\approx1-0.5987=0.4013$ (calculator
geometcdf(0.05,10)). - $P(X=10)=(0.95)^{9}(0.05)\approx0.0315$.
- $\mu=1/0.05=20$: on average $20$ items are inspected to find the first defect, even though there is a $40\%$ chance it is found within $10$.
例题 6.6b:检查产品直到出现第一个次品
检查员逐件检查产品;每件独立地以概率 $0.05$ 为次品。求第一个次品在前 $10$ 件内出现的概率、恰在第 $10$ 件出现的概率,以及期望检查件数。
- $X$ 服从 $p=0.05$ 的几何分布。
- $P(X\le10)=1-(0.95)^{10}\approx1-0.5987=0.4013$(计算器
geometcdf(0.05,10))。 - $P(X=10)=(0.95)^{9}(0.05)\approx0.0315$。
- $\mu=1/0.05=20$:平均需检查 $20$ 件才发现第一个次品,尽管在前 $10$ 件内发现的概率有 $40\%$。
Worked Example 6.6c: Quick answers on a help line
A synthetic help line answers each call within 30 seconds with probability $0.35$, independently. Let $X$ be the number of calls a customer makes until the first one is answered that quickly. (a) Find $P(X\ge4)$. (b) The first $2$ calls were not answered quickly. Find the probability that more than $4$ further calls are needed. (c) Find $\mu_X$ and $\sigma_X$ and interpret $\mu_X$. (d) Find $P(X>6)$.
- Geometric setting: independent calls, the same $p=0.35$, counting calls until the first success.
- $P(X\ge4)=P(X>3)=(0.65)^{3}\approx0.2746$: the first three calls all fail.
- Given $X>2$, $P(X>6\mid X>2)=\dfrac{0.65^{6}}{0.65^{2}}=0.65^{4}\approx0.1785$. This equals $P(X>4)$, because earlier failures do not change the future.
- $\mu_X=\dfrac{1}{0.35}\approx2.86$ calls and $\sigma_X=\dfrac{\sqrt{0.65}}{0.35}\approx2.30$ calls. Interpretation: over many customers, the number of calls until a quick answer averages about $2.9$ calls, with a typical spread of about $2.3$ calls.
- $P(X>6)=(0.65)^{6}\approx0.0754$: about $7.5\%$ of customers need more than six calls.
例题 6.6c:客服热线的快速接通
某合成客服热线以概率 $0.35$ 在 30 秒内接通每通来电,各次来电相互独立。设 $X$ 为顾客拨打到第一次被快速接通所需的来电次数。(a) 求 $P(X\ge4)$。(b) 前 $2$ 次来电都没有被快速接通。求还需要多于 $4$ 次来电的概率。(c) 求 $\mu_X$ 与 $\sigma_X$ 并解释 $\mu_X$。(d) 求 $P(X>6)$。
- 几何情境:来电相互独立,$p=0.35$ 相同,计数直到首次成功。
- $P(X\ge4)=P(X>3)=(0.65)^{3}\approx0.2746$:前三次来电全部失败。
- 已知 $X>2$,$P(X>6\mid X>2)=\dfrac{0.65^{6}}{0.65^{2}}=0.65^{4}\approx0.1785$。这等于 $P(X>4)$,因为先前的失败不改变未来。
- $\mu_X=\dfrac{1}{0.35}\approx2.86$ 次,$\sigma_X=\dfrac{\sqrt{0.65}}{0.35}\approx2.30$ 次。解释:对大量顾客而言,到被快速接通所需的来电次数平均约为 $2.9$ 次,典型离散程度约为 $2.3$ 次。
- $P(X>6)=(0.65)^{6}\approx0.0754$:约 $7.5\%$ 的顾客需要拨打六次以上。
Using a geometric model when $n$ is fixed (that is binomial), starting the count at $0$ (the first possible value is $1$), or writing $P(X\le k)=(1-p)^{k}$. The probability that the first $k$ trials all fail is $(1-p)^{k}=P(X>k)$.
在 $n$ 固定时用几何模型(那是二项分布)、把计数从 $0$ 开始(第一个可能取值是 $1$),或写出 $P(X\le k)=(1-p)^{k}$。前 $k$ 次试验全部失败的概率是 $(1-p)^{k}=P(X>k)$。
After $3$ unanswered calls, a customer thinks the next call is more likely to be answered quickly. The calls are independent with the same $p=0.35$, so call $4$ still succeeds with probability $0.35$, and the number of further calls needed has the same distribution as at the start. Fix: use the conditional calculation $\dfrac{P(X>5)}{P(X>3)}=0.65^{2}$, which shows that past failures leave the future unchanged.
连续 $3$ 次来电没被接通后,顾客以为下一次更可能被快速接通。各次来电独立且 $p=0.35$ 相同,所以第 $4$ 次仍以概率 $0.35$ 成功,还需要的来电次数与一开始的分布相同。改正:用条件概率的算法 $\dfrac{P(X>5)}{P(X>3)}=0.65^{2}$,它表明过去的失败不改变未来。
"Until the first success" is the cue for geometric; "how many successes in $n$ trials" is the cue for binomial. Say which model you use and why, and interpret the mean as "the long-run average number of trials needed".
“直到首次成功”是几何分布的信号;“$n$ 次试验中有几次成功”是二项分布的信号。写出所用模型及理由,并把均值解释为“所需试验次数的长期平均”。
Binomial or geometric? (a) the number of free throws a player takes until her first miss; (b) the number of heads in $10$ flips.二项还是几何?(a) 球员罚球直到第一次不中所投的次数;(b) $10$ 次抛掷的正面数。
(a) geometric (count trials until the first "success", here a miss). (b) binomial ($n=10$ fixed).
(a) 几何(计数直到首次“成功”,这里“成功”指不中)。(b) 二项($n=10$ 固定)。
A fair die is rolled until a $6$ appears. Find the probability the first $6$ is on the third roll.公平骰子掷到出现 $6$ 为止。求第一个 $6$ 出现在第三次的概率。
$(5/6)^2(1/6)=25/216\approx0.1157$.
$(5/6)^2(1/6)=25/216\approx0.1157$。
For the same die find the mean number of rolls to get a $6$ and $P(X>6)$.对同一骰子,求掷出 $6$ 所需次数的均值及 $P(X>6)$。
$\mu=1/(1/6)=6$ rolls. $P(X>6)=(5/6)^6\approx0.3349$.
$\mu=1/(1/6)=6$ 次。$P(X>6)=(5/6)^6\approx0.3349$。
Calculator summary计算器汇总
| Task | TI-84 | TI-Nspire |
|---|---|---|
| Random integers (simulation) | randInt(low,high,count) | randInt(low,high,count) |
| $\mu,\sigma$ of a discrete distribution | 1-Var Stats L1,L2, read x̄ and σx | sum(x*p), sqrt(sum((x-μ)^2*p)) |
| $P(X=k)$ binomial | binompdf(n,p,k) | binomPdf(n,p,k) |
| $P(X\le k)$ binomial | binomcdf(n,p,k) | binomCdf(n,p,0,k) |
| $P(X=k)$ geometric | geometpdf(p,k) | geomPdf(p,k) |
| $P(X\le k)$ geometric | geometcdf(p,k) | geomCdf(p,1,k) |
| Normal area | normalcdf(low,high,μ,σ) | Normal Cdf (Lower, Upper, μ, σ) |
| Normal percentile | invNorm(area,μ,σ) | Inverse Normal (Area, μ, σ) |
| 任务 | TI-84 | TI-Nspire |
|---|---|---|
| 随机整数(模拟) | randInt(下限,上限,个数) | randInt(下限,上限,个数) |
| 离散分布的 $\mu,\sigma$ | 1-Var Stats L1,L2,读 x̄ 与 σx | sum(x*p)、sqrt(sum((x-μ)^2*p)) |
| 二项 $P(X=k)$ | binompdf(n,p,k) | binomPdf(n,p,k) |
| 二项 $P(X\le k)$ | binomcdf(n,p,k) | binomCdf(n,p,0,k) |
| 几何 $P(X=k)$ | geometpdf(p,k) | geomPdf(p,k) |
| 几何 $P(X\le k)$ | geometcdf(p,k) | geomCdf(p,1,k) |
| 正态面积 | normalcdf(下限,上限,μ,σ) | Normal Cdf(下限、上限、μ、σ) |
| 正态百分位数 | invNorm(面积,μ,σ) | Inverse Normal(面积、μ、σ) |
Check the argument order every time. Omitting the last argument of binompdf( on a TI-84 returns the whole list of probabilities, which is easy to misread as a single value.
每次都核对参数顺序。在 TI-84 上省略 binompdf( 的最后一个参数会返回整张概率表,容易误读为单个数值。
Flashcards闪卡
Select a card to reveal the answer.
点击卡片查看答案。
Unit quiz单元自测
Answer: B. $\sigma=\sqrt{np(1-p)}=\sqrt{20(0.3)(0.7)}=\sqrt{4.2}\approx2.05$. Choice A is the mean $np$, and C is the variance.
答案:B。$\sigma=\sqrt{np(1-p)}=\sqrt{20(0.3)(0.7)}=\sqrt{4.2}\approx2.05$。选项 A 是均值 $np$,C 是方差。
Answer: A. $\mu=1/p=1/0.25=4$ trials on average until the first success.
答案:A。$\mu=1/p=1/0.25=4$,即平均需要 $4$ 次试验才首次成功。
Answer: C. Variances add even for a difference: $\sqrt{2^2+1.5^2}=\sqrt{6.25}=2.5$. Choice A subtracts the SDs, B adds them, and D is the variance.
答案:C。即使求差,方差也是相加:$\sqrt{2^2+1.5^2}=\sqrt{6.25}=2.5$。选项 A 把标准差相减,B 把标准差相加,D 是方差。
Answer: B. The count runs until the first success, so the model is geometric: $P(X=3)=(0.8)^{2}(0.2)=0.128$. Choice A is $(0.8)^3$, all three calls failing; C is $P(X\le3)=1-(0.8)^3$; D is $(0.2)^3$.
答案:B。计数一直到首次成功,所以是几何模型:$P(X=3)=(0.8)^{2}(0.2)=0.128$。选项 A 是 $(0.8)^3$,即三次都未接通;C 是 $P(X\le3)=1-(0.8)^3$;D 是 $(0.2)^3$。
Answer: D. "At least $3$" is $1-P(X\le2)$, so use 1-binomcdf(8,0.4,2) $=1-0.3154\approx0.6846$. Choice A is $P(X=3)$, B is $P(X\ge4)$, and C is $P(X\le3)$.
答案:D。“至少 $3$”是 $1-P(X\le2)$,所以用 1-binomcdf(8,0.4,2) $=1-0.3154\approx0.6846$。选项 A 是 $P(X=3)$,B 是 $P(X\ge4)$,C 是 $P(X\le3)$。
Answer: A. $\mu_Y=3(20)-4=56$ and $\sigma_Y=|3|(5)=15$; subtracting $4$ shifts the center but does not change the spread. Choice B subtracts $4$ from the SD, C multiplies by $3^2$, and D adds $4$ to the mean.
答案:A。$\mu_Y=3(20)-4=56$,$\sigma_Y=|3|(5)=15$;减去 $4$ 只平移中心,不改变离散程度。选项 B 把标准差也减去了 $4$,C 乘了 $3^2$,D 把均值加了 $4$。
Answer: C. An expected value is a long-run average, not the value that will occur on one play or after a fixed number of plays. Choices A, B and D treat it as the result of individual plays.
答案:C。期望值是长期平均,不是单局或固定局数之后必然出现的值。选项 A、B、D 都把它当成了单局的结果。
Answer: A. $np=30\ge10$ and $n(1-p)=70\ge10$. The others fail: $np=2.5$ in B, $np=8$ in C, and $n(1-p)=3$ in D.
答案:A。$np=30\ge10$ 且 $n(1-p)=70\ge10$。其余都不满足:B 中 $np=2.5$,C 中 $np=8$,D 中 $n(1-p)=3$。
Answer: B. The probabilities sum to $1$, so $P(X=3)=1-0.6=0.4$ and $E(X)=1(0.2)+2(0.3)+3(0.4)+4(0.1)=2.4$. Choice A is the unweighted average of $1,2,3,4$, C comes from using $P(X=3)=0.5$, and D divides the weighted sum $2.4$ by $4$.
答案:B。概率之和为 $1$,所以 $P(X=3)=1-0.6=0.4$,$E(X)=1(0.2)+2(0.3)+3(0.4)+4(0.1)=2.4$。选项 A 是 $1,2,3,4$ 的不加权平均,C 是误取 $P(X=3)=0.5$,D 把加权和 $2.4$ 又除以了 $4$。
Answer: C. $D=X-Y$ is normal with mean $5$ and standard deviation $\sqrt{6^2+8^2}=10$, so $P(D>0)=P\big(z>\tfrac{0-5}{10}\big)=P(z>-0.5)\approx0.6915$. Choice A is $P(Y>X)$, B uses $6+8=14$ as the standard deviation, and D uses $8-6=2$.
答案:C。$D=X-Y$ 服从正态分布,均值 $5$,标准差 $\sqrt{6^2+8^2}=10$,所以 $P(D>0)=P\big(z>\tfrac{0-5}{10}\big)=P(z>-0.5)\approx0.6915$。选项 A 是 $P(Y>X)$,B 把标准差取为 $6+8=14$,D 取为 $8-6=2$。
Answer: D. The interval includes both $4$ and $8$, so subtract $P(X\le3)$ from $P(X\le8)$: $0.9050-0.0905\approx0.814$. Choice A is $P(X\le8)$, B drops the value $4$, and C drops the value $8$.
答案:D。区间同时包含 $4$ 与 $8$,所以用 $P(X\le8)$ 减去 $P(X\le3)$:$0.9050-0.0905\approx0.814$。选项 A 是 $P(X\le8)$,B 漏掉了取值 $4$,C 漏掉了取值 $8$。
Answer: A. Past failures do not change the future, so the further attempts are geometric again: $P(X>7\mid X>4)=P(X>3)=(0.8)^{3}=0.512$. Choice B is $(0.8)^{7}$, the probability that all $7$ attempts fail from the very start, C is $(0.8)^{4}$, and D is $1-(0.8)^{3}$.
答案:A。过去的失败不改变未来,所以后续尝试重新服从几何分布:$P(X>7\mid X>4)=P(X>3)=(0.8)^{3}=0.512$。选项 B 是 $(0.8)^{7}$,即从一开始 $7$ 次都失败的概率,C 是 $(0.8)^{4}$,D 是 $1-(0.8)^{3}$。